]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/: remove unused pg_hit_set_history_t::current_last_stamp
authorSamuel Just <sjust@redhat.com>
Mon, 21 Sep 2015 22:42:52 +0000 (15:42 -0700)
committerSamuel Just <sjust@redhat.com>
Mon, 21 Sep 2015 22:46:09 +0000 (15:46 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ReplicatedPG.cc
src/osd/osd_types.cc
src/osd/osd_types.h

index 5ce65562d5d3610d585a8422d53098a9d59b4ab8..439c355eb144027fc73e68aa631218dbee7c21c7 100644 (file)
@@ -10972,7 +10972,6 @@ void ReplicatedPG::hit_set_persist()
   updated_hit_set_hist.history.push_back(updated_hit_set_hist.current_info);
   hit_set_create();
   updated_hit_set_hist.current_info = pg_hit_set_info_t(pool.info.use_gmt_hitset);
-  updated_hit_set_hist.current_last_stamp = utime_t();
 
   // fabricate an object_info_t and SnapSet
   obc->obs.oi.version = ctx->at_version;
index a675d5640759a3c974ce71fdc811545f59661680..e33acc08e82a410f45baa3e85b4d4eeab5c32359 100644 (file)
@@ -4000,7 +4000,10 @@ void pg_hit_set_history_t::encode(bufferlist& bl) const
 {
   ENCODE_START(1, 1, bl);
   ::encode(current_last_update, bl);
-  ::encode(current_last_stamp, bl);
+  {
+    utime_t dummy_stamp;
+    ::encode(dummy_stamp, bl);
+  }
   ::encode(current_info, bl);
   ::encode(history, bl);
   ENCODE_FINISH(bl);
@@ -4010,7 +4013,10 @@ void pg_hit_set_history_t::decode(bufferlist::iterator& p)
 {
   DECODE_START(1, p);
   ::decode(current_last_update, p);
-  ::decode(current_last_stamp, p);
+  {
+    utime_t dummy_stamp;
+    ::decode(dummy_stamp, p);
+  }
   ::decode(current_info, p);
   ::decode(history, p);
   DECODE_FINISH(p);
@@ -4019,7 +4025,6 @@ void pg_hit_set_history_t::decode(bufferlist::iterator& p)
 void pg_hit_set_history_t::dump(Formatter *f) const
 {
   f->dump_stream("current_last_update") << current_last_update;
-  f->dump_stream("current_last_stamp") << current_last_stamp;
   f->open_object_section("current_info");
   current_info.dump(f);
   f->close_section();
@@ -4038,7 +4043,6 @@ void pg_hit_set_history_t::generate_test_instances(list<pg_hit_set_history_t*>&
   ls.push_back(new pg_hit_set_history_t);
   ls.push_back(new pg_hit_set_history_t);
   ls.back()->current_last_update = eversion_t(1, 2);
-  ls.back()->current_last_stamp = utime_t(100, 123);
   ls.back()->current_info.begin = utime_t(2, 4);
   ls.back()->current_info.end = utime_t(62, 24);
   ls.back()->history.push_back(ls.back()->current_info);
index baace7c396ce2ab10522fcc69e9ab01ff06378f1..832d8d07996de6fccacacf8deb9e7b4e3c5f6f0c 100644 (file)
@@ -1740,7 +1740,6 @@ WRITE_CLASS_ENCODER(pg_hit_set_info_t)
  */
 struct pg_hit_set_history_t {
   eversion_t current_last_update;  ///< last version inserted into current set
-  utime_t current_last_stamp;      ///< timestamp of last insert
   pg_hit_set_info_t current_info;  ///< metadata about the current set
   list<pg_hit_set_info_t> history; ///< archived sets, sorted oldest -> newest