diff options
author | Dewal Gupta <dewal.gupta@10gen.com> | 2018-06-21 15:48:20 -0400 |
---|---|---|
committer | Dewal Gupta <dewal.gupta@10gen.com> | 2018-06-28 15:49:20 -0400 |
commit | 0889a7e2b592f443d9bfedb320e852c150bc5b14 (patch) | |
tree | 59c299ae4972e6258e47f3f241e5787f2a199520 /src/mongo/db/repl/read_concern_args.h | |
parent | 00e7bb4f5e46be31f371964186a31ac613a13a1c (diff) | |
download | mongo-0889a7e2b592f443d9bfedb320e852c150bc5b14.tar.gz |
SERVER-33679 Forward declare OperationContext in read_concern_args.h
Diffstat (limited to 'src/mongo/db/repl/read_concern_args.h')
-rw-r--r-- | src/mongo/db/repl/read_concern_args.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/repl/read_concern_args.h b/src/mongo/db/repl/read_concern_args.h index 097b05858a9..6ec753d2ac5 100644 --- a/src/mongo/db/repl/read_concern_args.h +++ b/src/mongo/db/repl/read_concern_args.h @@ -34,7 +34,6 @@ #include "mongo/base/status.h" #include "mongo/db/json.h" #include "mongo/db/logical_time.h" -#include "mongo/db/operation_context.h" #include "mongo/db/repl/optime.h" #include "mongo/db/repl/read_concern_level.h" #include "mongo/util/time_support.h" @@ -42,6 +41,7 @@ namespace mongo { class BSONObj; +class OperationContext; namespace repl { @@ -53,7 +53,8 @@ public: static const std::string kAtClusterTimeFieldName; static const std::string kLevelFieldName; - static const OperationContext::Decoration<ReadConcernArgs> get; + static ReadConcernArgs& get(OperationContext* opCtx); + static const ReadConcernArgs& get(const OperationContext* opCtx); ReadConcernArgs(); |