]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mon/MDSMonitor.h
import ceph 16.2.6
[ceph.git] / ceph / src / mon / MDSMonitor.h
index d54434b4975e3fee999458ae0e7cd1f491deff82..c70814996fdc4e04cf4349b690a3894e8487a2c6 100644 (file)
@@ -32,6 +32,9 @@ class FileSystemCommandHandler;
 
 class MDSMonitor : public PaxosService, public PaxosFSMap, protected CommandHandler {
  public:
+  using clock = ceph::coarse_mono_clock;
+  using time = ceph::coarse_mono_time;
+
   MDSMonitor(Monitor &mn, Paxos &p, std::string service_name);
 
   // service methods
@@ -146,6 +149,10 @@ protected:
   // when the mon was not updating us for some period (e.g. during slow
   // election) to reset last_beacon timeouts
   ceph::mono_time last_tick = ceph::mono_clock::zero();
+
+private:
+  time last_fsmap_struct_flush = clock::zero();
+  bool check_fsmap_struct_version = true;
 };
 
 #endif