Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbd: watch command should unwatch before exiting #3578

Merged
merged 1 commit into from Feb 2, 2015
Merged

Conversation

dillaman
Copy link

@dillaman dillaman commented Feb 2, 2015

The watch CLI command did not properly unwatch the image before exiting. It also opened the image as R/W which resulted in two watches being established on the image.

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>
jdurgin added a commit that referenced this pull request Feb 2, 2015
rbd: watch command should unwatch before exiting

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
@jdurgin jdurgin merged commit ba1ea15 into master Feb 2, 2015
@jdurgin jdurgin deleted the wip-10709 branch February 2, 2015 16:16
@loic-bot
Copy link

loic-bot commented Feb 2, 2015

SUCCESS: the output of run-make-check.sh on centos-centos7 for c9ab559 is http://paste2.org/_vCAffUN9

:octocat: Sent from GH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants