diff options
author | Ian Kuehne <ian.kuehne@mongodb.com> | 2017-07-03 13:10:24 -0400 |
---|---|---|
committer | Ian Kuehne <ian.kuehne@mongodb.com> | 2017-07-03 15:58:06 -0400 |
commit | acd196d77043d007b07b48b6e2c4fb13cfa5b938 (patch) | |
tree | ffd83f977e02211f7867bed6dc67d4efed71b0fe /src/mongo/db/read_concern.cpp | |
parent | d362678ea9a9e4e948bfda0bc60e2fefdd1eb045 (diff) | |
download | mongo-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.cpp | 7 |
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); |