summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/sync_tail.h
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2015-03-12 17:26:50 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2015-04-01 17:49:20 -0400
commit8f19f04b228b56fd0ae934c3a943192b16225823 (patch)
tree592c1ab64e15f2a07768bed34b3c575cc40f2bd2 /src/mongo/db/repl/sync_tail.h
parent0acfa37d849d3538d8ad6a656189047775a3163e (diff)
downloadmongo-8f19f04b228b56fd0ae934c3a943192b16225823.tar.gz
SERVER-5218 Replicate journal write concern flag
Diffstat (limited to 'src/mongo/db/repl/sync_tail.h')
-rw-r--r--src/mongo/db/repl/sync_tail.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/repl/sync_tail.h b/src/mongo/db/repl/sync_tail.h
index 1802a05f41c..5932634362e 100644
--- a/src/mongo/db/repl/sync_tail.h
+++ b/src/mongo/db/repl/sync_tail.h
@@ -124,8 +124,11 @@ namespace repl {
// Doles out all the work to the writer pool threads and waits for them to complete
void applyOps(const std::vector< std::vector<BSONObj> >& writerVectors);
+ // mustAwaitCommit is an out-parameter and indicates that at least one of the ops
+ // in 'ops' had j:true.
void fillWriterVectors(const std::deque<BSONObj>& ops,
- std::vector< std::vector<BSONObj> >* writerVectors);
+ std::vector< std::vector<BSONObj> >* writerVectors,
+ bool* mustAwaitCommit);
void handleSlaveDelay(const BSONObj& op);
// persistent pool of worker threads for writing ops to the databases