]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: remove unneeded assert from unregister_watch()
authorJosh Durgin <jdurgin@redhat.com>
Thu, 5 Mar 2015 01:52:39 +0000 (17:52 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Thu, 5 Mar 2015 01:52:43 +0000 (17:52 -0800)
commitcb840cc47d741a4e1bffa44b89c129fc1df6443b
tree5a998cebc349ffd9bcef34a4c412c3685df77fb3
parent569b12035a5c2d449f394dee53d76ea3c5d5a048
librbd: remove unneeded assert from unregister_watch()

Calling this unconditionally in close_image() simplifies error
handling when open_image() fails due to an error like EPERM from
registering a watch.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/librbd/ImageWatcher.cc