Skip to content

Commit

Permalink
SERVER-25662: print initial sync time in seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
scotthernandez committed Sep 19, 2016
1 parent 11303e7 commit b0f32d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mongo/db/repl/data_replicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,8 @@ StatusWith<OpTimeWithHash> DataReplicator::doInitialSync(OperationContext* txn,

_storage->clearInitialSyncFlag(txn);
_opts.setMyLastOptime(_lastApplied.opTime);
log() << "initial sync done; took " << _stats.initialSyncEnd - _stats.initialSyncStart
<< " milliseconds.";
log() << "initial sync done; took "
<< duration_cast<Seconds>(_stats.initialSyncEnd - _stats.initialSyncStart) << ".";
initialSyncCompletes.increment();
return _lastApplied;
}
Expand Down

0 comments on commit b0f32d9

Please sign in to comment.