Skip to content

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

Merged
yuvalif merged 1 commit intoceph:masterfrom
yuvalif:fix_versioning_in_notif
May 9, 2020
Merged

rgw/notifications: version id was not sent in versioned buckets#34958
yuvalif merged 1 commit intoceph:masterfrom
yuvalif:fix_versioning_in_notif

Conversation

@yuvalif
Copy link
Copy Markdown
Contributor

@yuvalif yuvalif commented May 8, 2020

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

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


// 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

2 participants