]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmap: make test instnaces deterministic
authorSage Weil <sage.weil@dreamhost.com>
Wed, 1 Feb 2012 23:49:31 +0000 (15:49 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Wed, 1 Feb 2012 23:49:31 +0000 (15:49 -0800)
current time can vary

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/OSDMap.cc

index c4d4911856b3673f5bcba5ebd48b23530a67288d..9cb2a9cd21b9d5b39725684fae0c4ac9357dfe66 100644 (file)
@@ -749,6 +749,7 @@ void OSDMap::generate_test_instances(list<OSDMap*>& o)
   o.push_back(new OSDMap);
   uuid_d fsid;
   o.back()->build_simple(cct, 1, fsid, 16, 7, 8, 9);
+  o.back()->created = o.back()->modified = utime_t(1, 2);  // fix timestamp
   delete cct;
 }