summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authz_manager_external_state_d.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2013-10-05 19:46:39 -0400
committerAndy Schwerin <schwerin@10gen.com>2013-10-06 16:25:08 -0400
commit4f481600f817f5d3c6d2c1cee74e3c133c453681 (patch)
tree60a05c472cd21a95904821649de48d3ab821b74f /src/mongo/db/auth/authz_manager_external_state_d.cpp
parent480e8e81f5d4a12134d55bfb8c91c0f33ff07741 (diff)
downloadmongo-4f481600f817f5d3c6d2c1cee74e3c133c453681.tar.gz
SERVER-10670 On a failure resulting from programming error, throw out the RoleGraph.
Diffstat (limited to 'src/mongo/db/auth/authz_manager_external_state_d.cpp')
-rw-r--r--src/mongo/db/auth/authz_manager_external_state_d.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/db/auth/authz_manager_external_state_d.cpp b/src/mongo/db/auth/authz_manager_external_state_d.cpp
index 5ff60e92fcb..0e251cb5dd8 100644
--- a/src/mongo/db/auth/authz_manager_external_state_d.cpp
+++ b/src/mongo/db/auth/authz_manager_external_state_d.cpp
@@ -512,12 +512,8 @@ namespace {
"Only direct privileges available. " << status.reason() <<
" after applying oplog entry " << op;
}
- else if (!status.isOK()) {
- _roleGraphState = roleGraphStateInitial;
- error() << "Error updating role graph; only builtin roles available. "
- "TODO how to remedy. " << status << " Oplog entry: " << op;
- }
else {
+ fassert(0, status);
_roleGraphState = roleGraphStateConsistent;
}
}