summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern.cpp
diff options
context:
space:
mode:
authorIan Kuehne <ian.kuehne@mongodb.com>2017-07-03 13:10:24 -0400
committerIan Kuehne <ian.kuehne@mongodb.com>2017-07-03 15:58:06 -0400
commitacd196d77043d007b07b48b6e2c4fb13cfa5b938 (patch)
treeffd83f977e02211f7867bed6dc67d4efed71b0fe /src/mongo/db/read_concern.cpp
parentd362678ea9a9e4e948bfda0bc60e2fefdd1eb045 (diff)
downloadmongo-acd196d77043d007b07b48b6e2c4fb13cfa5b938.tar.gz
SERVER-29544 Remove deprecated macro calls.
Diffstat (limited to 'src/mongo/db/read_concern.cpp')
-rw-r--r--src/mongo/db/read_concern.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/db/read_concern.cpp b/src/mongo/db/read_concern.cpp
index a2f79eeea95..b0266a169af 100644
--- a/src/mongo/db/read_concern.cpp
+++ b/src/mongo/db/read_concern.cpp
@@ -245,17 +245,14 @@ Status waitForLinearizableReadConcern(OperationContext* opCtx) {
"No longer primary when waiting for linearizable read concern"};
}
- MONGO_WRITE_CONFLICT_RETRY_LOOP_BEGIN {
-
+ writeConflictRetry(opCtx, "waitForLinearizableReadConcern", "local.rs.oplog", [&opCtx] {
WriteUnitOfWork uow(opCtx);
opCtx->getClient()->getServiceContext()->getOpObserver()->onOpMessage(
opCtx,
BSON("msg"
<< "linearizable read"));
uow.commit();
- }
- MONGO_WRITE_CONFLICT_RETRY_LOOP_END(
- opCtx, "waitForLinearizableReadConcern", "local.rs.oplog");
+ });
}
WriteConcernOptions wc = WriteConcernOptions(
WriteConcernOptions::kMajority, WriteConcernOptions::SyncMode::UNSET, 0);