0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

small opt

This commit is contained in:
Eliot Horowitz 2009-12-31 16:27:08 -05:00
parent e21bb90572
commit 578f1973ea

View File

@ -47,6 +47,8 @@ namespace mongo {
/* sometimes we deal with databases with the same name in different directories - thus this */
inline string makeDbKeyStr( const char *ns, const string& path ) {
if ( path == dbpath )
return ns;
char cl[256];
nsToClient(ns, cl);
return string( cl ) + ":" + path;