diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-04-05 18:07:25 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-04-13 10:27:35 -0400 |
commit | 235858ceee5d209d5e10579b79cfdc3bad7ff877 (patch) | |
tree | 1e7b4850f6a221a5522874b5d8a104d1175aa630 /src/mongo/db/repl/read_concern_args.h | |
parent | 7154532058809f99b6476a800f246f690b98ab68 (diff) | |
download | mongo-235858ceee5d209d5e10579b79cfdc3bad7ff877.tar.gz |
SERVER-34073 Allow creating transactions with readConcerns other than 'snapshot', upconvert to 'snapshot'
Diffstat (limited to 'src/mongo/db/repl/read_concern_args.h')
-rw-r--r-- | src/mongo/db/repl/read_concern_args.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl/read_concern_args.h b/src/mongo/db/repl/read_concern_args.h index 29aab009a89..97f25b2e8d1 100644 --- a/src/mongo/db/repl/read_concern_args.h +++ b/src/mongo/db/repl/read_concern_args.h @@ -88,6 +88,12 @@ public: Status initialize(const BSONElement& readConcernElem); /** + * Upconverts the readConcern level to 'snapshot', or returns a non-ok status if this + * readConcern cannot be upconverted. + */ + Status upconvertReadConcernLevelToSnapshot(); + + /** * Appends level and afterOpTime. */ void appendInfo(BSONObjBuilder* builder) const; |