diff options
Diffstat (limited to 'src/mongo/db/instance.cpp')
-rw-r--r-- | src/mongo/db/instance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/instance.cpp b/src/mongo/db/instance.cpp index 55f8e72a6cf..183912d6187 100644 --- a/src/mongo/db/instance.cpp +++ b/src/mongo/db/instance.cpp @@ -179,7 +179,7 @@ void generateLegacyQueryErrorResponse(const AssertionException* exception, << " ntoreturn:" << queryMessage.ntoreturn; } - const SendStaleConfigException* scex = (exception->getCode() == SendStaleConfigCode) + const SendStaleConfigException* scex = (exception->getCode() == ErrorCodes::SendStaleConfig) ? static_cast<const SendStaleConfigException*>(exception) : NULL; |