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-mirror: removed dedicated thread from image deleter #19000
Conversation
|
||
namespace { | ||
|
||
const int EISPRM = 1000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I see this was in the original code too. Anyway do we need a special error code here? We do not check for it, and it may propagate to ImageReplayer, and I suppose cpp_strerror()
will generate a strange log message. May be use EBUSY instead?
src/tools/rbd_mirror/ImageDeleter.cc
Outdated
"rbd_mirror_concurrent_image_deletions")), | ||
m_failed_interval(g_ceph_context->_conf->get_val<double>( | ||
"rbd_mirror_delete_retry_interval")), | ||
m_lock("rbd::mirror::ImageDeleter::m_lock"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: If we did not cache these config settings in member variables we could change them in runtime.
derr << "failed to close: " << cpp_strerror(r) << dendl; | ||
finish(r); | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dillaman need to delete m_image_ctx
@trociny thanks -- update pushed |
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Fixes: http://tracker.ceph.com/issues/15322 Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Fixed a race condition in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.