]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: list snapid 0 on collection_list_partial for backfill
authorSamuel Just <samuel.just@dreamhost.com>
Wed, 14 Dec 2011 23:17:44 +0000 (15:17 -0800)
committerSamuel Just <samuel.just@dreamhost.com>
Wed, 14 Dec 2011 23:17:44 +0000 (15:17 -0800)
0 will list all objects, CEPH_NO_SNAP will list only head objects.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/osd/ReplicatedPG.cc

index f6980a6f3203e80323381db69795196e9791fd81..f5c96f10fcef5c287c0e02c643196749dcfcd07e 100644 (file)
@@ -5529,7 +5529,7 @@ void ReplicatedPG::scan_range(hobject_t begin, int min, int max, BackfillInterva
   vector<hobject_t> 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;