mirror of
https://github.com/ceph/ceph
synced 2025-01-19 09:32:00 +00:00
rbd: bench snapshot if it was specified
Signed-off-by: Mykola Golub <mgolub@suse.com>
This commit is contained in:
parent
99d22c5dfd
commit
ac5af020e7
@ -462,8 +462,8 @@ int bench_execute(const po::variables_map &vm, io_type_t bench_io_type) {
|
||||
librados::Rados rados;
|
||||
librados::IoCtx io_ctx;
|
||||
librbd::Image image;
|
||||
r = utils::init_and_open_image(pool_name, namespace_name, image_name, "", "",
|
||||
false, &rados, &io_ctx, &image);
|
||||
r = utils::init_and_open_image(pool_name, namespace_name, image_name, "",
|
||||
snap_name, false, &rados, &io_ctx, &image);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user