summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rs_initialsync.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/rs_initialsync.cpp')
-rw-r--r--src/mongo/db/repl/rs_initialsync.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/rs_initialsync.cpp b/src/mongo/db/repl/rs_initialsync.cpp
index 174999bf601..374d700d828 100644
--- a/src/mongo/db/repl/rs_initialsync.cpp
+++ b/src/mongo/db/repl/rs_initialsync.cpp
@@ -356,7 +356,7 @@ namespace {
truncateAndResetOplog(&txn, replCoord, bgsync);
OplogReader r;
- Timestamp now(Milliseconds(curTimeMillis64()).total_seconds(), 0);
+ Timestamp now(duration_cast<Seconds>(Milliseconds(curTimeMillis64())), 0);
while (r.getHost().empty()) {
// We must prime the sync source selector so that it considers all candidates regardless