]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmap: set ctime+mtime on creation
authorSage Weil <sage@newdream.net>
Sat, 20 Sep 2008 22:01:51 +0000 (15:01 -0700)
committerSage Weil <sage@newdream.net>
Sat, 20 Sep 2008 22:01:51 +0000 (15:01 -0700)
src/osd/OSDMap.cc

index 518b234cb7ac57267bc73946111339bb3d5483f9..6f8362587c779f121f59dee828895c0a21db0a5e 100644 (file)
@@ -28,7 +28,7 @@ void OSDMap::build_simple(epoch_t e, ceph_fsid &fsid,
           << lpg_bits << " lpg bits" << dendl;
   epoch = e;
   set_fsid(fsid);
-  ctime = g_clock.now();
+  mtime = ctime = g_clock.now();
 
   set_max_osd(num_osd);
   pg_num = pgp_num = num_osd << pg_bits;