]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: some whitespace
authorSage Weil <sage@redhat.com>
Fri, 3 Nov 2017 19:52:33 +0000 (14:52 -0500)
committerSage Weil <sage@redhat.com>
Sat, 2 Dec 2017 03:26:49 +0000 (21:26 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc

index 38f9a3c612fc1b09731016df58d02cca0416299e..d3e6a215755c80a5764af68926a665a2219351d2 100644 (file)
@@ -1624,10 +1624,10 @@ void PG::activate(ObjectStore::Transaction& t,
     if (intersection == info.purged_snaps) {
       snap_trimq.subtract(info.purged_snaps);
     } else {
-        dout(0) << "warning: info.purged_snaps (" << info.purged_snaps
-                << ") is not a subset of pool.cached_removed_snaps ("
-                << pool.cached_removed_snaps << ")" << dendl;
-        snap_trimq.subtract(intersection);
+      dout(0) << "warning: info.purged_snaps (" << info.purged_snaps
+             << ") is not a subset of removed_snaps" << dendl;
+      snap_trimq.subtract(intersection);
+      assert(!cct->_conf->osd_debug_verify_cached_snaps);
     }
   }
 
@@ -3523,8 +3523,8 @@ void PG::update_snap_map(
  */
 void PG::filter_snapc(vector<snapid_t> &snaps)
 {
-  //nothing needs to trim, we can return immediately
-  if(snap_trimq.empty() && info.purged_snaps.empty())
+  // nothing needs to trim, we can return immediately
+  if (snap_trimq.empty() && info.purged_snaps.empty())
     return;
 
   bool filtering = false;