diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2018-09-27 14:40:17 -0400 |
---|---|---|
committer | Henrik Edin <henrik.edin@mongodb.com> | 2018-10-04 13:04:57 -0400 |
commit | 33df3d3c8da6b75913cdf7c04b60f6d85cdc5cf4 (patch) | |
tree | 2e62bb671a99318d4d438669e686d099a5d09788 /src/mongo/db/read_concern.h | |
parent | 9eb18b76c9c8cc53b5448e332bb850efd314eb41 (diff) | |
download | mongo-33df3d3c8da6b75913cdf7c04b60f6d85cdc5cf4.tar.gz |
SERVER-37299 Remove dependency on s/grid from rw_concern_d.
Read concern implementation shim'd out and separate for mongod and embedded.
Diffstat (limited to 'src/mongo/db/read_concern.h')
-rw-r--r-- | src/mongo/db/read_concern.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mongo/db/read_concern.h b/src/mongo/db/read_concern.h index f50178c6956..4d79c8ed91d 100644 --- a/src/mongo/db/read_concern.h +++ b/src/mongo/db/read_concern.h @@ -28,6 +28,8 @@ #pragma once +#include "mongo/base/shim.h" + namespace mongo { class BSONObj; @@ -46,14 +48,15 @@ class ReadConcernArgs; * perform the wait. If allowAfterClusterTime is false returns an error if afterClusterTime is * set on the readConcernArgs. */ -Status waitForReadConcern(OperationContext* opCtx, - const repl::ReadConcernArgs& readConcernArgs, - bool allowAfterClusterTime); +extern MONGO_DECLARE_SHIM((OperationContext * opCtx, + const repl::ReadConcernArgs& readConcernArgs, + bool allowAfterClusterTime) + ->Status) waitForReadConcern; /* * Given a linearizable read command, confirm that * current primary is still the true primary of the replica set. */ -Status waitForLinearizableReadConcern(OperationContext* opCtx); +extern MONGO_DECLARE_SHIM((OperationContext * opCtx)->Status) waitForLinearizableReadConcern; } // namespace mongo |