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: fix test to identify whether object has tail #2321

Merged
merged 1 commit into from Aug 26, 2014
Merged

rgw: fix test to identify whether object has tail #2321

merged 1 commit into from Aug 26, 2014

Conversation

yehudasa
Copy link
Member

Fixes: #9226
Reported-by: Sylvain Munaut s.munaut@whatever-company.com
Backport: firefly

We need to identify whether an object is just composed of a head, or
also has a tail. Test for pre-firefly objects ("explicit objs") was
broken as it was just looking at the number of explicit objs in the
manifest. However, this is insufficient, as we might have empty head,
and in this case it wouldn't appear, so we need to check whether the
sole object is actually pointing at the head.

Signed-off-by: Yehuda Sadeh yehuda@redhat.com

Fixes: #9226
Reported-by: Sylvain Munaut <s.munaut@whatever-company.com>
Backport: firefly

We need to identify whether an object is just composed of a head, or
also has a tail. Test for pre-firefly objects ("explicit objs") was
broken as it was just looking at the number of explicit objs in the
manifest. However, this is insufficient, as we might have empty head,
and in this case it wouldn't appear, so we need to check whether the
sole object is actually pointing at the head.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
liewegas added a commit that referenced this pull request Aug 26, 2014
rgw: fix test to identify whether object has tail

Reviewed-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit a753180 into next Aug 26, 2014
@liewegas liewegas deleted the wip-9226 branch August 26, 2014 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants