From: Haomai Wang Date: Sun, 9 Oct 2016 10:31:54 +0000 (+0800) Subject: osd/PGBackend: fix collection_list shadow return value X-Git-Tag: v10.2.6~36^2~4^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0ec405129992f657e9921cbd0e52c32a235963af;p=ceph.git osd/PGBackend: fix collection_list shadow return value Fixes: http://tracker.ceph.com/issues/17713 Signed-off-by: Haomai Wang (cherry picked from commit 8a53a604f375eb568a6fc88a402a6afd83fa151a) --- diff --git a/src/osd/PGBackend.cc b/src/osd/PGBackend.cc index 7351e558d8a0a..35183cc6a43bd 100644 --- a/src/osd/PGBackend.cc +++ b/src/osd/PGBackend.cc @@ -133,7 +133,7 @@ int PGBackend::objects_list_partial( int r = 0; while (!_next.is_max() && ls->size() < (unsigned)min) { vector objects; - int r = store->collection_list( + r = store->collection_list( ch, _next, ghobject_t::get_max(), @@ -141,8 +141,10 @@ int PGBackend::objects_list_partial( max - ls->size(), &objects, &_next); - if (r != 0) + if (r != 0) { + derr << __func__ << " list collection " << ch << " got: " << cpp_strerror(r) << dendl; break; + } for (vector::iterator i = objects.begin(); i != objects.end(); ++i) {