summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency/write_conflict_exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/concurrency/write_conflict_exception.h')
-rw-r--r--src/mongo/db/concurrency/write_conflict_exception.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/concurrency/write_conflict_exception.h b/src/mongo/db/concurrency/write_conflict_exception.h
index e94eab741d7..9ebe9c4cb60 100644
--- a/src/mongo/db/concurrency/write_conflict_exception.h
+++ b/src/mongo/db/concurrency/write_conflict_exception.h
@@ -38,7 +38,7 @@
#define MONGO_WRITE_CONFLICT_RETRY_LOOP_END(PTXN, OPSTR, NSSTR) \
catch (const ::mongo::WriteConflictException &wce) { \
const OperationContext* ptxn = (PTXN); \
- ++CurOp::get(ptxn)->debug().writeConflicts; \
+ ++ptxn->getCurOp()->debug().writeConflicts; \
wce.logAndBackoff(wcr__Attempts, (OPSTR), (NSSTR)); \
++wcr__Attempts; \
ptxn->recoveryUnit()->abandonSnapshot(); \