]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: test: Fixed test_PoolWatcher to support the new changes in PoolWatcher...
authorRicardo Dias <rdias@suse.com>
Mon, 18 Apr 2016 11:22:19 +0000 (12:22 +0100)
committerJason Dillaman <dillaman@redhat.com>
Tue, 31 May 2016 15:48:15 +0000 (11:48 -0400)
Signed-off-by: Ricardo Dias <rdias@suse.com>
(cherry picked from commit e3677f115e1f369a49227fba51a1d34505d487ac)

src/test/rbd_mirror/test_PoolWatcher.cc

index 5d131d37c2743966db620280849531d028007438..fd739f5bd8bd64257b839797ec27897be48e7508 100644 (file)
@@ -149,7 +149,7 @@ TestPoolWatcher() : m_lock("TestPoolWatcherLock"),
       image.close();
 
       m_mirrored_images[ioctx.get_id()].insert(PoolWatcher::ImageIds(
-        get_image_id(&ioctx, name), mirror_image_info.global_id));
+        get_image_id(&ioctx, name), name, mirror_image_info.global_id));
     }
     if (image_name != nullptr)
       *image_name = name;
@@ -194,7 +194,7 @@ TestPoolWatcher() : m_lock("TestPoolWatcherLock"),
       image.close();
 
       m_mirrored_images[cioctx.get_id()].insert(PoolWatcher::ImageIds(
-        get_image_id(&cioctx, name), mirror_image_info.global_id));
+        get_image_id(&cioctx, name), name, mirror_image_info.global_id));
     }
     if (image_name != nullptr)
       *image_name = name;