]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: push_start, don't insert empty extent into data_subset
authorSamuel Just <sam.just@inktank.com>
Fri, 1 Jun 2012 18:07:32 +0000 (11:07 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 5 Jun 2012 23:09:50 +0000 (16:09 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index 569a415147f3121a5510a75c14c693e64330f540..db70429ef7d2e1e99763b9141cd8f6803576da25 100644 (file)
@@ -4620,7 +4620,8 @@ void ReplicatedPG::push_start(ObjectContext *obc,
                              const hobject_t& soid, int peer)
 {
   interval_set<uint64_t> data_subset;
-  data_subset.insert(0, obc->obs.oi.size);
+  if (obc->obs.oi.size)
+    data_subset.insert(0, obc->obs.oi.size);
   map<hobject_t, interval_set<uint64_t> > clone_subsets;
 
   push_start(obc, soid, peer, obc->obs.oi.version, data_subset, clone_subsets);