0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

SERVER-19025 add fassertStatusOK to errorcodes.py

This commit is contained in:
Eric Milkie 2015-06-18 09:14:23 -04:00
parent e383a423d9
commit 75081de3da
3 changed files with 4 additions and 3 deletions

View File

@ -52,7 +52,7 @@ def parseSourceFiles( callback ):
patterns = [
re.compile( r"[umsg]asser(?:t|ted)(?:NoTrace)? *\( *(\d+)" ) ,
re.compile( r"(?:User|Msg|MsgAssertion)Exception *\( *(\d+)" ),
re.compile( r"fassert(?:Failed)?(?:WithStatus)?(?:NoTrace)? *\( *(\d+)" ),
re.compile( r"fassert(?:Failed)?(?:WithStatus)?(?:NoTrace)?(?:StatusOK)? *\( *(\d+)" ),
]
bad = [ re.compile( r"^\s*assert *\(" ) ]

View File

@ -456,7 +456,7 @@ namespace {
};
unique_ptr<LiteParsedQuery> findCmd(
fassertStatusOK(0, LiteParsedQuery::make(nss.toString(), limit, query)));
fassertStatusOK(28688, LiteParsedQuery::make(nss.toString(), limit, query)));
QueryFetcher fetcher(grid.shardRegistry()->getExecutor(),
host,

View File

@ -86,7 +86,8 @@ namespace mongo {
try {
// This can throw when we don't find a master!
HostAndPort masterHostAndPort = replMonitor->getMasterOrUassert();
*resolvedHost = fassertStatusOK(0, ConnectionString::parse(masterHostAndPort.toString()));
*resolvedHost = fassertStatusOK(28687,
ConnectionString::parse(masterHostAndPort.toString()));
return Status::OK();
}
catch ( const DBException& ) {