]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix test to identify whether object has tail
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 25 Aug 2014 17:38:42 +0000 (10:38 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 23 Sep 2014 20:55:48 +0000 (13:55 -0700)
commitb8fa2ed60b6cce51701df972dbb6f5e02e0d84ba
treee83661be0e1b174a73d6fce260443afb4dbc8ba5
parent6fee71154d838868807fd9824d829c8250d9d2eb
rgw: fix test to identify whether object has tail

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>
(cherry picked from commit 751b3e26532932a42ca34f9c062a0a3e29a58cff)
src/rgw/rgw_rados.h