]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: drop last head_exists = true calls
authorSage Weil <sage@redhat.com>
Fri, 1 Sep 2017 17:39:35 +0000 (13:39 -0400)
committerSage Weil <sage@redhat.com>
Thu, 21 Sep 2017 18:29:34 +0000 (14:29 -0400)
No more users!

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc
src/osd/PrimaryLogPG.cc

index 3a5261e8e583ba7f4288480994818baf959dec87..621685e5cbde0e98d9a2b8932af25bd9f54d4cf2 100644 (file)
@@ -3849,9 +3849,6 @@ void PG::_scan_snaps(ScrubMap &smap)
        continue;
       }
       head = hoid.get_head();
-      // Make sure head_exists is set
-      if (hoid.is_head())
-       snapset.head_exists = true;
       continue;
     }
     if (hoid.snap < CEPH_MAXSNAP) {
index ae08d738d095b9cf5a2e634f8a7b5446b1f09f39..1c73559dfcec2d19826d45fedd79719699d52a89 100644 (file)
@@ -6854,7 +6854,6 @@ int PrimaryLogPG::_rollback_to(OpContext *ctx, ceph_osd_op& op)
        t->remove(soid);
       }
       t->clone(soid, rollback_to_sobject);
-      snapset.head_exists = true;
       t->add_obc(rollback_to);
 
       map<snapid_t, interval_set<uint64_t> >::iterator iter =
@@ -6895,8 +6894,6 @@ int PrimaryLogPG::_rollback_to(OpContext *ctx, ceph_osd_op& op)
        dout(10) << __func__ << " clearing omap flag on " << obs.oi.soid << dendl;
        obs.oi.clear_flag(object_info_t::FLAG_OMAP);
       }
-
-      snapset.head_exists = true;
     }
   }
   return ret;
@@ -8314,7 +8311,6 @@ void PrimaryLogPG::finish_promote(int r, CopyResults *results,
       results->snapset,
       get_osdmap()->require_osd_release < CEPH_RELEASE_LUMINOUS);
   }
-  tctx->new_snapset.head_exists = true;
   dout(20) << __func__ << " new_snapset " << tctx->new_snapset << dendl;
 
   // take RWWRITE lock for duration of our local write.  ignore starvation.
@@ -12282,7 +12278,6 @@ void PrimaryLogPG::hit_set_persist()
 
   ctx->new_obs = obc->obs;
 
-  obc->ssc->snapset.head_exists = true;
   ctx->new_snapset = obc->ssc->snapset;
 
   ctx->delta_stats.num_objects++;