summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern.h
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2019-06-11 13:23:46 -0400
committerLouis Williams <louis.williams@mongodb.com>2019-06-11 13:23:46 -0400
commitc23da6ac95bf5f687b6d21f2cc86f4775be88cd5 (patch)
tree01ddfa412a5cddf83a46eae66d387370fe4053b6 /src/mongo/db/read_concern.h
parent01e68d5ac26a64b5b2d3a836428c07e3874488bf (diff)
downloadmongo-c23da6ac95bf5f687b6d21f2cc86f4775be88cd5.tar.gz
SERVER-41525 Use ignore_prepare=force for transactions that correctly do writes while ignoring prepare conflicts
Diffstat (limited to 'src/mongo/db/read_concern.h')
-rw-r--r--src/mongo/db/read_concern.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mongo/db/read_concern.h b/src/mongo/db/read_concern.h
index 8e8ca0b3575..7bd7594e143 100644
--- a/src/mongo/db/read_concern.h
+++ b/src/mongo/db/read_concern.h
@@ -38,19 +38,12 @@ class OperationContext;
class Status;
template <typename T>
class StatusWith;
+enum class PrepareConflictBehavior;
namespace repl {
class ReadConcernArgs;
class SpeculativeMajorityReadInfo;
}
-enum class PrepareConflictBehavior {
- /* When prepare conflicts are encountered, block until the conflict is resolved. */
- kEnforce,
- /* Ignore prepare conflicts when they are encountered. This should only be enabled for
- * operations than only perform reads. */
- kIgnore
-};
-
/**
* Given the specified read concern arguments, performs checks that the read concern can actually be
* satisfied given the current state of the server and if so calls into the replication subsystem to