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

rgw/notifications: version id was not sent in versioned buckets #34958

Merged
merged 1 commit into from
May 9, 2020

Conversation

yuvalif
Copy link
Contributor

@yuvalif yuvalif commented May 8, 2020

Signed-off-by: Yuval Lifshitz ylifshit@redhat.com

Fixes: https://tracker.ceph.com/issues/45440

@@ -4180,7 +4180,7 @@ void RGWPutObj::execute()
}

// send request to notification manager
const auto ret = rgw::notify::publish(s, s->object, s->obj_size, mtime, etag, rgw::notify::ObjectCreatedPut, store);
const auto ret = rgw::notify::publish(s, obj.key, s->obj_size, mtime, etag, rgw::notify::ObjectCreatedPut, store);
Copy link
Contributor

Choose a reason for hiding this comment

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

for review purposes, how is obj.key improved over s->object?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

for review purposes, how is obj.key improved over s->object?

s->object contains the object key from the request. in case of "put" it does not contain the version (only "delete" has version in the request).
obj.key contains the version in case of a versioned bucket

@mattbenjamin mattbenjamin self-requested a review May 8, 2020 13:05
Copy link
Contributor

@mattbenjamin mattbenjamin left a comment

Choose a reason for hiding this comment

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

ack, lgtm

@yuvalif
Copy link
Contributor Author

yuvalif commented May 9, 2020

teuthology run: http://pulpito.front.sepia.ceph.com/yuvalif-2020-05-08_12:06:07-rgw:multisite-fix_versioning_in_notif-distro-basic-smithi/
has one failure in: test_datalog_autotrim which is unrelated to the fix

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