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

librados: fix potential race condition if notify immediately fails #21859

Merged
merged 1 commit into from May 9, 2018

Conversation

dillaman
Copy link

@dillaman dillaman commented May 7, 2018

Fixes: http://tracker.ceph.com/issues/23966
Signed-off-by: Jason Dillaman dillaman@redhat.com

@dillaman dillaman added this to the mimic milestone May 7, 2018
@dillaman dillaman requested a review from tchaikov May 7, 2018 17:26
@@ -1828,7 +1828,6 @@ int librados::IoCtxImpl::notify(const object_t& oid, bufferlist& bl,
Context *notify_finish = new C_notify_Finish(client->cct, &notify_finish_cond,
objecter, linger_op, preply_bl,
preply_buf, preply_buf_len);
(void) notify_finish;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dillaman we might want to keep this to silence the warnings, but probably we could use the maybe_unused attribute specifier:

[[maybe_unused]] auto notify_finish = ...

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