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-mirror: include local pool id in resync throttle unique key #10254

Merged
merged 1 commit into from Jul 13, 2016

Conversation

dillaman
Copy link

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

@rjfd
Copy link
Contributor

rjfd commented Jul 12, 2016

lgtm

}
}

template <typename I>
void ImageSyncThrottler<I>::cancel_sync(const std::string& local_image_id) {
void ImageSyncThrottler<I>::cancel_sync(librados::IoCtx &local_io_ctx,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just pass the uint64_t pool id instead of the IoCtx object?

Copy link
Author

Choose a reason for hiding this comment

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

Just to abstract away how the key is formed -- I originally wanted to change the signature to pass in ImageCtxT but that would have involved more work in bootstrap to only cancel if an image sync was scheduled.

@trociny trociny self-assigned this Jul 12, 2016
trociny pushed a commit that referenced this pull request Jul 12, 2016
 rbd-mirror: include local pool id in resync throttle unique key #10254
trociny pushed a commit that referenced this pull request Jul 13, 2016
rbd-mirror: include local pool id in resync throttle unique key #10254
@trociny
Copy link
Contributor

trociny commented Jul 13, 2016

lgtm

@trociny trociny merged commit c0422fa into ceph:master Jul 13, 2016
@dillaman dillaman deleted the wip-16536 branch July 13, 2016 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants