diff options
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r-- | src/mongo/db/repl/read_concern_args.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mongo/db/repl/read_concern_args.cpp b/src/mongo/db/repl/read_concern_args.cpp index 5906aad2b51..080a2ce5ff1 100644 --- a/src/mongo/db/repl/read_concern_args.cpp +++ b/src/mongo/db/repl/read_concern_args.cpp @@ -27,9 +27,6 @@ * it in the license file. */ - -#include "mongo/platform/basic.h" - #include "mongo/db/repl/read_concern_args.h" #include "mongo/bson/util/bson_extract.h" @@ -41,15 +38,15 @@ #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kReplication - -using std::string; - namespace mongo { namespace repl { +namespace { const OperationContext::Decoration<ReadConcernArgs> handle = OperationContext::declareDecoration<ReadConcernArgs>(); +} // namespace + ReadConcernArgs& ReadConcernArgs::get(OperationContext* opCtx) { return handle(opCtx); } @@ -58,7 +55,6 @@ const ReadConcernArgs& ReadConcernArgs::get(const OperationContext* opCtx) { return handle(opCtx); } - // The "kImplicitDefault" read concern, used by internal operations, is deliberately empty (no // 'level' specified). This allows internal operations to specify a read concern, while still // allowing it to be either local or available on sharded secondaries. |