From 3c771924b5b9aab81764cb72ddec1acf980db847 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 18 May 2012 09:38:52 -0700 Subject: [PATCH] mon: always mark seed/mkfs monmap as epoch 0 This isn't strictly necessary, since the MonmapMonitor resets this on first commit, but it's cleaner. Signed-off-by: Sage Weil --- src/ceph_mon.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ceph_mon.cc b/src/ceph_mon.cc index 267afd5bb8f79..6ad27c2abc7cc 100644 --- a/src/ceph_mon.cc +++ b/src/ceph_mon.cc @@ -124,6 +124,9 @@ int main(int argc, const char **argv) } try { monmap.decode(monmapbl); + + // always mark seed/mkfs monmap as epoch 0 + monmap.set_epoch(0); } catch (const buffer::error& e) { cerr << argv[0] << ": error decoding monmap " << g_conf->monmap << ": " << e.what() << std::endl; -- 2.39.5