summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/batched_delete_stage.cpp
diff options
context:
space:
mode:
authorAmirsaman Memaripour <amirsaman.memaripour@mongodb.com>2022-05-10 17:33:32 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-10 20:50:30 +0000
commit8113aef47fab9d0d14c953b78032ab1661360438 (patch)
tree361fb0dcddab375966cce82d5accd751bd878c65 /src/mongo/db/exec/batched_delete_stage.cpp
parent589aa86a047d5f3d34294e054cd7b41cd74d9590 (diff)
downloadmongo-8113aef47fab9d0d14c953b78032ab1661360438.tar.gz
SERVER-66205 Merge `WriteConflictException` and `TemporarilyUnavailableException` into `assert_util.h`
Diffstat (limited to 'src/mongo/db/exec/batched_delete_stage.cpp')
-rw-r--r--src/mongo/db/exec/batched_delete_stage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/exec/batched_delete_stage.cpp b/src/mongo/db/exec/batched_delete_stage.cpp
index 32f5bfe5d99..8b66cc8143f 100644
--- a/src/mongo/db/exec/batched_delete_stage.cpp
+++ b/src/mongo/db/exec/batched_delete_stage.cpp
@@ -34,7 +34,7 @@
#include "mongo/db/catalog/collection.h"
#include "mongo/db/commands/server_status.h"
-#include "mongo/db/concurrency/write_conflict_exception.h"
+#include "mongo/db/concurrency/exception_util.h"
#include "mongo/db/curop.h"
#include "mongo/db/exec/scoped_timer.h"
#include "mongo/db/exec/working_set_common.h"
@@ -279,7 +279,7 @@ PlanStage::StageState BatchedDeleteStage::_deleteBatch(WorkingSetID* out) {
bool groupedWuowActive = true;
for (; bufferOffset < _stagedDeletesBuffer.size(); ++bufferOffset) {
if (MONGO_unlikely(throwWriteConflictExceptionInBatchedDeleteStage.shouldFail())) {
- throw WriteConflictException();
+ throwWriteConflictException();
}
auto workingSetMemberID = _stagedDeletesBuffer.at(bufferOffset);