summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern.h
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2019-11-07 15:22:08 +0000
committerevergreen <evergreen@mongodb.com>2019-11-07 15:22:08 +0000
commitb2493375543cb89b020f224a1759c1f4d40aa638 (patch)
tree971629049003126366f31846208ce6bf65fdbd20 /src/mongo/db/read_concern.h
parenta811bbe9d2489c428886288651c2dbddec0d123d (diff)
downloadmongo-b2493375543cb89b020f224a1759c1f4d40aa638.tar.gz
SERVER-44372 WeakFunction: a simplification of SHIM_ macros
Diffstat (limited to 'src/mongo/db/read_concern.h')
-rw-r--r--src/mongo/db/read_concern.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/src/mongo/db/read_concern.h b/src/mongo/db/read_concern.h
index cdb4a968682..6168b393954 100644
--- a/src/mongo/db/read_concern.h
+++ b/src/mongo/db/read_concern.h
@@ -29,8 +29,6 @@
#pragma once
-#include "mongo/base/shim.h"
-
namespace mongo {
class BSONObj;
@@ -51,10 +49,9 @@ class SpeculativeMajorityReadInfo;
* are used to verify if the command is safe to ignore prepare conflicts, and if not, we
* enforce prepare conflicts.
*/
-extern MONGO_DECLARE_SHIM((OperationContext * opCtx,
- const repl::ReadConcernArgs& readConcernArgs,
- PrepareConflictBehavior prepareConflictBehavior)
- ->void) setPrepareConflictBehaviorForReadConcern;
+void setPrepareConflictBehaviorForReadConcern(OperationContext* opCtx,
+ const repl::ReadConcernArgs& readConcernArgs,
+ PrepareConflictBehavior prepareConflictBehavior);
/**
* Given the specified read concern arguments, performs checks that the read concern can actually be
@@ -65,10 +62,9 @@ extern MONGO_DECLARE_SHIM((OperationContext * opCtx,
* Note: Callers should use setPrepareConflictBehaviorForReadConcern method to set the desired
* prepare conflict behavior for their command.
*/
-extern MONGO_DECLARE_SHIM((OperationContext * opCtx,
- const repl::ReadConcernArgs& readConcernArgs,
- bool allowAfterClusterTime)
- ->Status) waitForReadConcern;
+Status waitForReadConcern(OperationContext* opCtx,
+ const repl::ReadConcernArgs& readConcernArgs,
+ bool allowAfterClusterTime);
/*
* Given a linearizable read command, confirm that
@@ -77,16 +73,14 @@ extern MONGO_DECLARE_SHIM((OperationContext * opCtx,
* A readConcernTimeout of 0 indicates that the operation will block indefinitely waiting for read
* concern.
*/
-extern MONGO_DECLARE_SHIM((OperationContext * opCtx, const int readConcernTimeout)->Status)
- waitForLinearizableReadConcern;
+Status waitForLinearizableReadConcern(OperationContext* opCtx, int readConcernTimeout);
/**
* Waits to satisfy a "speculative" majority read.
*
* This method must only be called if the operation is a speculative majority read.
*/
-extern MONGO_DECLARE_SHIM((OperationContext * opCtx,
- repl::SpeculativeMajorityReadInfo speculativeReadInfo)
- ->Status) waitForSpeculativeMajorityReadConcern;
+Status waitForSpeculativeMajorityReadConcern(OperationContext* opCtx,
+ repl::SpeculativeMajorityReadInfo speculativeReadInfo);
} // namespace mongo