]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
monmaptool: don't increment epoch on modification
authorSage Weil <sage@inktank.com>
Thu, 17 May 2012 18:09:24 +0000 (11:09 -0700)
committerSage Weil <sage@inktank.com>
Fri, 18 May 2012 23:23:56 +0000 (16:23 -0700)
This just confuses things, because a manually manipulated map might have
some epoch number that bears no relation to the actual published/committed
maps.

Signed-off-by: Sage Weil <sage@inktank.com>
src/monmaptool.cc

index 1df5096807b1487672dbb7914dfb6345b70d0b11..2c80d47260c56497863e8426efabed626a923419 100644 (file)
@@ -159,9 +159,6 @@ int main(int argc, const char **argv)
   if (!print && !modified)
     usage();
 
-  if (modified && !create)
-    monmap.epoch++;
-
   if (print) 
     monmap.print(cout);