tare before startup

git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@879 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
sage 2006-09-25 03:21:11 +00:00
parent 985169b168
commit 76d6c7954f

View 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);