diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2015-04-13 17:10:07 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2015-04-13 17:57:01 -0400 |
commit | 88fc9400e4e6389a9f3c36001bac4786426505f2 (patch) | |
tree | d1046be82054c9f48f7a004f30e245a7fb4cab3d /src/mongo/db/repl/sync_tail.h | |
parent | eea0ef850ef7f07e354a466e011b39ab518a5254 (diff) | |
download | mongo-88fc9400e4e6389a9f3c36001bac4786426505f2.tar.gz |
SERVER-18023 Don't await commit when applying logops in initial sync
Diffstat (limited to 'src/mongo/db/repl/sync_tail.h')
-rw-r--r-- | src/mongo/db/repl/sync_tail.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/repl/sync_tail.h b/src/mongo/db/repl/sync_tail.h index 68e5f546845..b2bad4c4828 100644 --- a/src/mongo/db/repl/sync_tail.h +++ b/src/mongo/db/repl/sync_tail.h @@ -98,6 +98,10 @@ namespace repl { static const int replBatchLimitSeconds = 1; static const unsigned int replBatchLimitOperations = 5000; + // SyncTail base class always supports awaiting commit if any op has j:true flag + // that indicates awaiting commit before updating last OpTime. + virtual bool supportsAwaitingCommit() { return true; } + // Prefetch and write a deque of operations, using the supplied function. // Initial Sync and Sync Tail each use a different function. // Returns the last OpTime applied. |