summaryrefslogtreecommitdiff
path: root/db/db.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/db.cpp')
-rw-r--r--db/db.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/db/db.cpp b/db/db.cpp
index 0a8088a9240..3d4217d27c6 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -432,7 +432,7 @@ namespace mongo {
stringstream ss;
ss << "dbpath (" << dbpath << ") does not exist";
- massert( ss.str().c_str(), boost::filesystem::exists( dbpath ) );
+ massert( 10296 , ss.str().c_str(), boost::filesystem::exists( dbpath ) );
acquirePathLock();
remove_all( dbpath + "/_tmp/" );
@@ -756,7 +756,7 @@ int main(int argc, char* argv[], char *envp[] )
#endif
if (params.count("logpath")) {
string lp = params["logpath"].as<string>();
- uassert( "logpath has to be non-zero" , lp.size() );
+ uassert( 10033 , "logpath has to be non-zero" , lp.size() );
initLogging( lp , params.count( "logappend" ) );
}
if (params.count("nocursors")) {
@@ -830,32 +830,32 @@ int main(int argc, char* argv[], char *envp[] )
pairWith(paired.c_str(), "-");
}
} else if (params.count("arbiter")) {
- uasserted("specifying --arbiter without --pairwith");
+ uasserted(10999,"specifying --arbiter without --pairwith");
}
if (params.count("autoresync")) {
autoresync = true;
}
if( params.count("nssize") ) {
int x = params["nssize"].as<int>();
- uassert("bad --nssize arg", x > 0 && x <= (0x7fffffff/1024/1024));
+ uassert( 10034 , "bad --nssize arg", x > 0 && x <= (0x7fffffff/1024/1024));
lenForNewNsFiles = x * 1024 * 1024;
assert(lenForNewNsFiles > 0);
}
if (params.count("oplogSize")) {
long x = params["oplogSize"].as<long>();
- uassert("bad --oplogSize arg", x > 0);
+ uassert( 10035 , "bad --oplogSize arg", x > 0);
cmdLine.oplogSize = x * 1024 * 1024;
assert(cmdLine.oplogSize > 0);
}
if (params.count("opIdMem")) {
long x = params["opIdMem"].as<long>();
- uassert("bad --opIdMem arg", x > 0);
+ uassert( 10036 , "bad --opIdMem arg", x > 0);
opIdMem = x;
assert(opIdMem > 0);
}
if (params.count("cacheSize")) {
long x = params["cacheSize"].as<long>();
- uassert("bad --cacheSize arg", x > 0);
+ uassert( 10037 , "bad --cacheSize arg", x > 0);
setRecCacheSize(x);
}
if (params.count("port") == 0 ) {
@@ -1051,7 +1051,7 @@ BOOL CtrlHandler( DWORD fdwCtrlType )
if( SetConsoleCtrlHandler( (PHANDLER_ROUTINE) CtrlHandler, TRUE ) )
;
else
- massert("Couldn't register Windows Ctrl-C handler", false);
+ massert( 10297 , "Couldn't register Windows Ctrl-C handler", false);
}
#endif