]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "ReplicatedPG::recover_backfill: adjust last_backfill to HEAD if snapdir"
authorDavid Zafman <david.zafman@inktank.com>
Mon, 17 Feb 2014 02:24:33 +0000 (18:24 -0800)
committerDavid Zafman <david.zafman@inktank.com>
Fri, 21 Feb 2014 23:19:40 +0000 (15:19 -0800)
This reverts commit 545135f3e1c75318940caa2c82ac32a53fc4f957.

Conflicts:

src/osd/ReplicatedPG.cc

src/common/hobject.h
src/osd/ReplicatedPG.cc

index f31604b43bc3483e146642d57e0f9c1630128851..293348356bbc24ea4f43cc984d0a820f3c667028 100644 (file)
@@ -95,11 +95,6 @@ public:
     return ret;
   }
 
-  /// @return true if object is snapdir
-  bool is_snapdir() const {
-    return snap == CEPH_SNAPDIR;
-  }
-
   /// @return snapdir version of this hobject_t
   hobject_t get_snapdir() const {
     hobject_t ret(*this);
index 11b5b63eaab1bb35073ab57a47e909af17f5992b..a332e6a587f8363fcfece1d1805aa08e5d9b5189 100644 (file)
@@ -9887,16 +9887,6 @@ int ReplicatedPG::recover_backfill(
   }
   dout(10) << "possible new_last_backfill at " << new_last_backfill << dendl;
 
-  /* If last_backfill is snapdir, we know that head necessarily cannot exist,
-   * therefore it's safe to bump the snap up to NOSNAP.  This is necessary
-   * since we need avoid having SNAPDIR backfilled and HEAD not backfilled
-   * since a transaction on HEAD might change SNAPDIR
-   */
-  if (new_last_backfill.is_snapdir())
-    new_last_backfill = new_last_backfill.get_head();
-  if (last_backfill_started.is_snapdir())
-    last_backfill_started = last_backfill_started.get_head();
-
   assert(!pending_backfill_updates.empty() ||
         new_last_backfill == last_backfill_started);
   if (pending_backfill_updates.empty() &&