diff options
Diffstat (limited to 'src/mongo/db/index/index_build_interceptor.cpp')
| -rw-r--r-- | src/mongo/db/index/index_build_interceptor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/index/index_build_interceptor.cpp b/src/mongo/db/index/index_build_interceptor.cpp index c90ac194d8b..455496c0c98 100644 --- a/src/mongo/db/index/index_build_interceptor.cpp +++ b/src/mongo/db/index/index_build_interceptor.cpp @@ -37,7 +37,7 @@ #include "mongo/bson/bsonobj.h" #include "mongo/db/catalog_raii.h" -#include "mongo/db/concurrency/exception_util.h" +#include "mongo/db/concurrency/write_conflict_exception.h" #include "mongo/db/curop.h" #include "mongo/db/db_raii.h" #include "mongo/db/index/index_access_method.h" @@ -338,7 +338,7 @@ void IndexBuildInterceptor::_yield(OperationContext* opCtx, const Yieldable* yie auto locker = opCtx->lockState(); Locker::LockSnapshot snapshot; - locker->saveLockStateAndUnlock(&snapshot); + invariant(locker->saveLockStateAndUnlock(&snapshot)); // Track the number of yields in CurOp. |
