Fixes: http://tracker.ceph.com/issues/17713
Signed-off-by: Haomai Wang <haomai@xsky.com>
(cherry picked from commit
8a53a604f375eb568a6fc88a402a6afd83fa151a)
Conflicts:
src/osd/PGBackend.cc (master is using store->collection_list and ch;
hammer is using store->collection_list_partial and coll)
int r = 0;
while (!_next.is_max() && ls->size() < (unsigned)min) {
vector<ghobject_t> objects;
- int r = store->collection_list_partial(
+ r = store->collection_list_partial(
coll,
_next,
min - ls->size(),
seq,
&objects,
&_next);
- if (r != 0)
+ if (r != 0) {
+ derr << __func__ << " list collection " << coll << " got: " << cpp_strerror(r) << dendl;
break;
+ }
for (vector<ghobject_t>::iterator i = objects.begin();
i != objects.end();
++i) {