]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: watch command should unwatch before exiting 3578/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 2 Feb 2015 14:21:13 +0000 (09:21 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 2 Feb 2015 15:05:20 +0000 (10:05 -0500)
commiteb526af773c016dfbd1d83984a677f72e72f3628
tree525f0e7e85c38fc29cd7420c21fd6822d7b01247
parenta63cccce113cddfc481a19e57e1278899caf8537
rbd: watch command should unwatch before exiting

Switched the rbd CLI tool to use the new watch/unwatch API
and properly unwatch the image before exiting. Additionally,
the watch command opened the image twice -- once R/W and another
R/O.  This resulted in two watches being created for the image.
Cleaned up old/new format detection by using the existing API
methods.

Fixes: #10709
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/rbd.cc