From d5bf63455aa614d98ac840f09ce5ca6b813b9507 Mon Sep 17 00:00:00 2001 From: Andy Schwerin Date: Fri, 15 May 2015 14:39:52 -0400 Subject: SERVER-18515 Replace OperationContext::getCurOp with CurOp::get(OperationContext*) --- src/mongo/db/catalog/capped_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/catalog/capped_utils.cpp') diff --git a/src/mongo/db/catalog/capped_utils.cpp b/src/mongo/db/catalog/capped_utils.cpp index e155c03c6e9..b90edb2c432 100644 --- a/src/mongo/db/catalog/capped_utils.cpp +++ b/src/mongo/db/catalog/capped_utils.cpp @@ -217,7 +217,7 @@ namespace { retries = 0; } catch (const WriteConflictException& wce) { - txn->getCurOp()->debug().writeConflicts++; + CurOp::get(txn)->debug().writeConflicts++; retries++; // logAndBackoff expects this to be 1 on first call. wce.logAndBackoff(retries, "cloneCollectionAsCapped", fromNs); -- cgit v1.2.1