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:
parent
e383a423d9
commit
75081de3da
@ -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 *\(" ) ]
|
||||
|
@ -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,
|
||||
|
@ -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& ) {
|
||||
|
Loading…
Reference in New Issue
Block a user