summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern.h
diff options
context:
space:
mode:
authorJason Chan <jason.chan@10gen.com>2019-02-14 13:08:41 -0500
committerJason Chan <jason.chan@10gen.com>2019-02-14 13:09:29 -0500
commit22e1ef5134181dd9f58e8408e04744f205d7b41d (patch)
tree7488b8bd8cf49777e0abd54b006be01b62e04f20 /src/mongo/db/read_concern.h
parenta6eab704282bd9c68249325d4fc38a9b2253724a (diff)
downloadmongo-22e1ef5134181dd9f58e8408e04744f205d7b41d.tar.gz
SERVER-37948 Satisfy linearizable read concern on getmore cursors.
Diffstat (limited to 'src/mongo/db/read_concern.h')
-rw-r--r--src/mongo/db/read_concern.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/read_concern.h b/src/mongo/db/read_concern.h
index 49a0b92acb0..2fd42beb71f 100644
--- a/src/mongo/db/read_concern.h
+++ b/src/mongo/db/read_concern.h
@@ -58,8 +58,12 @@ extern MONGO_DECLARE_SHIM((OperationContext * opCtx,
/*
* Given a linearizable read command, confirm that
* current primary is still the true primary of the replica set.
+ *
+ * A readConcernTimeout of 0 indicates that the operation will block indefinitely waiting for read
+ * concern.
*/
-extern MONGO_DECLARE_SHIM((OperationContext * opCtx)->Status) waitForLinearizableReadConcern;
+extern MONGO_DECLARE_SHIM((OperationContext * opCtx, const int readConcernTimeout)->Status)
+ waitForLinearizableReadConcern;
/**
* Waits to satisfy a "speculative" majority read.