]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: delete the copy assignment operator, replace it to decode()
authortang.jin <tang.jin@istuary.com>
Thu, 16 Mar 2017 11:31:43 +0000 (19:31 +0800)
committertang.jin <tang.jin@istuary.com>
Thu, 16 Mar 2017 11:31:43 +0000 (19:31 +0800)
Signed-off-by: tang.jin <tang.jin@istuary.com>
src/osd/PG.cc
src/osd/osd_types.h

index 3a75d8932e92829d7c28ef3dbbf4dcbe3e9e164b..dc20b637f93b7b8fd4e0e54465aba18eb4808345 100644 (file)
@@ -3871,7 +3871,7 @@ void PG::_scan_snaps(ScrubMap &smap)
       bl.push_back(o.attrs[OI_ATTR]);
       object_info_t oi;
       try {
-       oi = bl;
+       oi.decode(bl);
       } catch(...) {
        o.nlinks = 0;
        continue;
index 7fe56fe707f8378fafb09d0235ef10aae74773c3..2ef809ef2c7fa4e3926f3713ef3940dcb8539878 100644 (file)
@@ -4117,10 +4117,6 @@ struct object_info_t {
   explicit object_info_t(bufferlist& bl) {
     decode(bl);
   }
-  object_info_t operator=(bufferlist& bl) {
-    decode(bl);
-    return *this;
-  }
 };
 WRITE_CLASS_ENCODER_FEATURES(object_info_t)