diff options
author | Spencer T Brody <spencer@mongodb.com> | 2017-10-11 18:53:18 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2017-10-26 11:39:36 -0400 |
commit | 7220059b0cbaf88807db96059695082d47655d5f (patch) | |
tree | 38a9d1c0de021910155ee4204b2e7958fe57fd51 /src/mongo/db/exec/delete.cpp | |
parent | 0d8371f7e13b3455506f62d8e9129e4e66ed9a15 (diff) | |
download | mongo-7220059b0cbaf88807db96059695082d47655d5f.tar.gz |
SERVER-14601 Use proper error codes for NotMaster errors
Diffstat (limited to 'src/mongo/db/exec/delete.cpp')
-rw-r--r-- | src/mongo/db/exec/delete.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/delete.cpp b/src/mongo/db/exec/delete.cpp index 497e4ed04ec..02931d128b5 100644 --- a/src/mongo/db/exec/delete.cpp +++ b/src/mongo/db/exec/delete.cpp @@ -273,7 +273,7 @@ PlanStage::StageState DeleteStage::doWork(WorkingSetID* out) { void DeleteStage::doRestoreState() { invariant(_collection); const NamespaceString& ns(_collection->ns()); - uassert(28537, + uassert(ErrorCodes::PrimarySteppedDown, str::stream() << "Demoted from primary while removing from " << ns.ns(), !getOpCtx()->writesAreReplicated() || repl::getGlobalReplicationCoordinator()->canAcceptWritesFor(getOpCtx(), ns)); |