]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librbd: valgrind warning in TestMockManagedLockBreakRequest.DeadLockOwner 18940/head
authorMykola Golub <to.my.trociny@gmail.com>
Wed, 15 Nov 2017 08:20:58 +0000 (10:20 +0200)
committerMykola Golub <to.my.trociny@gmail.com>
Wed, 15 Nov 2017 08:20:58 +0000 (10:20 +0200)
When running with 'debug_rbd >= 20':

  Conditional jump or move depends on uninitialised value(s)
    by 0x94277B: operator<< (ostream:167)
    by 0x94277B: librbd::managed_lock::BreakRequest<librbd::(anonymous namespace)::MockTestImageCtx>::handle_get_watchers(int) (BreakRequest.cc:101)

Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
src/test/librbd/managed_lock/test_mock_BreakRequest.cc

index faeb090d505bcf9069bb0b6d3a9ccac127b4e10c..80ddd750d17f06dd586f4519e3e44b6df6bf4518 100644 (file)
@@ -82,6 +82,7 @@ public:
     } else {
       obj_watch_t watcher;
       strcpy(watcher.addr, (address + ":0/0").c_str());
+      watcher.watcher_id = 0;
       watcher.cookie = watch_handle;
 
       std::list<obj_watch_t> watchers;