]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: Remove the unuseful judgement in get_object_context.
authorJianpeng Ma <jianpeng.ma@intel.com>
Thu, 6 Aug 2015 01:06:54 +0000 (09:06 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Fri, 18 Sep 2015 06:44:51 +0000 (14:44 +0800)
In this case, attrs always null. So it can remove this judgement.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/osd/ReplicatedPG.cc

index 29769b8f7a0055c8e556aceaf5635e5c2407e843..0cea50773c7d6e5b1c6440dd94ae63249b11f9ec 100644 (file)
@@ -8320,8 +8320,7 @@ ObjectContextRef ReplicatedPG::get_object_context(const hobject_t& soid,
        // new object.
        object_info_t oi(soid);
        SnapSetContext *ssc = get_snapset_context(
-         soid, true,
-         soid.has_snapset() ? attrs : 0);
+         soid, true, 0);
        obc = create_object_context(oi, ssc);
        dout(10) << __func__ << ": " << obc << " " << soid
                 << " " << obc->rwstate