diff options
Diffstat (limited to 's/commands_public.cpp')
-rw-r--r-- | s/commands_public.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/s/commands_public.cpp b/s/commands_public.cpp index eb97d58b900..b32eae4ba72 100644 --- a/s/commands_public.cpp +++ b/s/commands_public.cpp @@ -58,7 +58,7 @@ namespace mongo { DBConfig * conf = grid.getDBConfig( dbName , false ); - if ( ! conf || ! conf->isPartitioned() || ! conf->sharded( fullns ) ){ + if ( ! conf || ! conf->isShardingEnabled() || ! conf->isSharded( fullns ) ){ ScopedDbConnection conn( conf->getPrimary() ); result.append( "n" , (double)conn->count( fullns , filter ) ); conn.done(); |