]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tare before startup
authorsage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 25 Sep 2006 03:21:11 +0000 (03:21 +0000)
committersage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 25 Sep 2006 03:21:11 +0000 (03:21 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@879 29311d96-e01e-0410-9327-a35deaab8ce9

ceph/newsyn.cc

index 4912860952431b1d49e246670fea067ea9210a22..8e8d6a9763b20b632d3754c75972415e3d96b8df 100644 (file)
@@ -43,6 +43,12 @@ pair<int,int> mpi_bootstrap_new(int& argc, char**& argv)
   MPI_Comm_size(MPI_COMM_WORLD, &mpi_world);
   MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);
 
+  // first, synchronize clocks.
+  MPI_Barrier(MPI_COMM_WORLD);
+  dout(-10) << "tare" << endl;
+  g_clock.tare();
+  
+  // ok, now start up.
   tcpaddr_t nsaddr;
   memset(&nsaddr, 0, sizeof(nsaddr));
   
@@ -65,9 +71,6 @@ pair<int,int> mpi_bootstrap_new(int& argc, char**& argv)
 
   MPI_Barrier(MPI_COMM_WORLD);
 
-  dout(-10) << "tare" << endl;
-  g_clock.tare();
-
   MPI_Finalize();
 
   return pair<int,int>(mpi_rank, mpi_world);