]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: encode OI with CEPH_FEATURES_ALL
authorKefu Chai <kchai@redhat.com>
Sun, 30 Aug 2020 12:59:35 +0000 (20:59 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 30 Aug 2020 15:15:25 +0000 (23:15 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/pg_backend.cc

index cd08b87edc872f5f4e35da69d3fe1355e92d85f2..d0fc1461ff44b333e55926841e20bac6c6b329fd 100644 (file)
@@ -152,7 +152,7 @@ PGBackend::mutate_object(
     // object_info_t
     {
       ceph::bufferlist osv;
-      encode(obc->obs.oi, osv, 0);
+      encode(obc->obs.oi, osv, CEPH_FEATURES_ALL);
       // TODO: get_osdmap()->get_features(CEPH_ENTITY_TYPE_OSD, nullptr));
       txn.setattr(coll->get_cid(), ghobject_t{obc->obs.oi.soid}, OI_ATTR, osv);
     }