diff options
author | Jason Chan <jason.chan@10gen.com> | 2019-02-13 18:28:19 -0500 |
---|---|---|
committer | Jason Chan <jason.chan@10gen.com> | 2019-02-13 18:28:19 -0500 |
commit | 0cdb86f3cf2bbabe448669598c32297f5ec8214f (patch) | |
tree | 2631b47d613b0271eea709503fad0a13833721bc /src/mongo/db/read_concern.h | |
parent | 970e0c02de8c5922efcab74cfee258f447f94741 (diff) | |
download | mongo-0cdb86f3cf2bbabe448669598c32297f5ec8214f.tar.gz |
SERVER-37948 Satisfy linearizable read concern on getMores
Diffstat (limited to 'src/mongo/db/read_concern.h')
-rw-r--r-- | src/mongo/db/read_concern.h | 6 |
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. |