From 81c4ed2b1d9ad64e47d83048d41f0c0666d90286 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Sat, 24 Aug 2019 09:51:20 +0800 Subject: [PATCH] osd/osd_types: drop 'new_object' from constructor 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 --- src/osd/osd_types.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h index a34da3882d8..85f3119dd60 100644 --- a/src/osd/osd_types.h +++ b/src/osd/osd_types.h @@ -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 { -- 2.39.5