From d32fd8c52138df6a61d361a2b046a5f3319c006b Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Wed, 14 Dec 2011 15:17:44 -0800 Subject: [PATCH] ReplicatedPG: list snapid 0 on collection_list_partial for backfill 0 will list all objects, CEPH_NO_SNAP will list only head objects. Signed-off-by: Samuel Just --- src/osd/ReplicatedPG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index f6980a6f3203e..f5c96f10fcef5 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -5529,7 +5529,7 @@ void ReplicatedPG::scan_range(hobject_t begin, int min, int max, BackfillInterva vector ls; ls.reserve(max); int r = osd->store->collection_list_partial(coll, begin, min, max, - CEPH_NOSNAP, &ls, &bi->end); + 0, &ls, &bi->end); assert(r >= 0); dout(10) << " got " << ls.size() << " items, next " << bi->end << dendl; dout(20) << ls << dendl; -- 2.39.5