]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/osd_types: drop 'new_object' from constructor
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 24 Aug 2019 01:51:20 +0000 (09:51 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 26 Aug 2019 05:13:27 +0000 (13:13 +0800)
There is no consumer.
Actually, I think this field is only meaningful to be used
to indicate whether we should initiate an inc-recovery or not.
If not, then we shall fall back to triggering a full-recovery
instead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/osd_types.h

index a34da3882d89298daca29fddc628c1bf8ed077e7..85f3119dd60668bfcf5ce0af55b96585b1512ad5 100644 (file)
@@ -4241,13 +4241,11 @@ struct pg_missing_item {
   } flags;
   pg_missing_item() : flags(FLAG_NONE) {}
   explicit pg_missing_item(eversion_t n) : need(n), flags(FLAG_NONE) {}  // have no old version
-  pg_missing_item(eversion_t n, eversion_t h, bool is_delete=false, bool old_style = false,bool new_object = false) :
+  pg_missing_item(eversion_t n, eversion_t h, bool is_delete=false, bool old_style = false) :
     need(n), have(h) {
+    set_delete(is_delete);
     if (old_style)
       clean_regions.mark_fully_dirty();
-    if (new_object)
-      clean_regions.mark_object_new();
-    set_delete(is_delete);
   }
 
   void encode(ceph::buffer::list& bl, uint64_t features) const {