]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/newstore: make collection_list tolerate sloppy start position
authorSage Weil <sage@redhat.com>
Tue, 24 Nov 2015 19:12:05 +0000 (14:12 -0500)
committerSage Weil <sage@redhat.com>
Fri, 1 Jan 2016 18:05:18 +0000 (13:05 -0500)
commit32e768391fc3ddd4507433bb4f18009769856400
tree12eb1d10591018488d5beca993d07f4f178f08d7
parent2dae3df8af7d5cbb25bc5078ec480ec8c63400e0
os/newstore: make collection_list tolerate sloppy start position

Because of this change (#6076), the hobject_t will contain pool id, hence
the ghobject_t having this hobject_t will be not equal to ghobject_t().

In newstore, this will cause assertion failure:
FAILED assert(k >= start_key && k < end_key)

The fix is to make compatible with previous change to create a
ghobject_t object with pool id and shard id in newstore.

Fixes: #13801
Reported-by: Zhi Zhang <zhangz.david@outlook.com>
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/newstore/NewStore.cc
src/osd/osd_types.h