]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: close image when bench is interrupted 26693/head
authorMykola Golub <mgolub@suse.com>
Thu, 28 Feb 2019 12:48:00 +0000 (12:48 +0000)
committerMykola Golub <mgolub@suse.com>
Thu, 28 Feb 2019 12:57:19 +0000 (12:57 +0000)
commitdcd083e647c04194acbfcea1501b7232f33c602b
tree069d3eda6d97324a8b2570418b45235c9dbf6d1d
parenta65a03137aec4b6f53e0d9c0ac314d44f3152c4b
rbd: close image when bench is interrupted

Previously when `rbd bench` was interrupted it left the lock and
watcher and one had to wait for them to expire before reusing or
removing the image.

As a bonus now it prints the benchmark summary on exit even if it
is interrupted.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/tools/rbd/action/Bench.cc