rbd-mirror: test: Fixed test_PoolWatcher to support the new changes in PoolWatcher class

Signed-off-by: Ricardo Dias <rdias@suse.com>
This commit is contained in:
Ricardo Dias 2016-04-18 12:22:19 +01:00 committed by Jason Dillaman
parent 3c2615aa6d
commit e3677f115e

View 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;