fix DBDirectClient::count

This commit is contained in:
Eliot Horowitz
2011-01-25 17:33:12 -05:00
parent 7765cc5982
commit 1aabdc3d74

View File

@@ -682,6 +682,8 @@ namespace mongo {
readlock lk( ns );
string errmsg;
long long res = runCount( ns.c_str() , _countCmd( ns , query , options , limit , skip ) , errmsg );
if ( res == -1 )
return 0;
uassert( 13637 , str::stream() << "count failed in DBDirectClient: " << errmsg , res >= 0 );
return (unsigned long long )res;
}