]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: Using Hobject_t::get_head.
authorJianpeng Ma <jianpeng.ma@intel.com>
Thu, 6 Aug 2015 02:32:26 +0000 (10:32 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Fri, 18 Sep 2015 06:44:51 +0000 (14:44 +0800)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/osd/ReplicatedPG.cc

index 0cea50773c7d6e5b1c6440dd94ae63249b11f9ec..b72fff92fff42d02bdd4322a8cb6f424241c69b1 100644 (file)
@@ -8424,8 +8424,8 @@ int ReplicatedPG::find_object_context(const hobject_t& oid,
     return 0;
   }
 
-  hobject_t head(oid.oid, oid.get_key(), CEPH_NOSNAP, oid.get_hash(),
-                info.pgid.pool(), oid.get_namespace());
+  hobject_t head = oid.get_head();
+
   // want the snapdir?
   if (oid.snap == CEPH_SNAPDIR) {
     // return head or snapdir, whichever exists.