diff options
-rw-r--r-- | db/dbcommands.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp index 16681804e33..f7e39afc2d4 100644 --- a/db/dbcommands.cpp +++ b/db/dbcommands.cpp @@ -974,6 +974,11 @@ namespace mongo { result.append( "storageSize" , nsd->storageSize() ); result.append( "nindexes" , nsd->nIndexes ); + if ( nsd->capped ){ + result.append( "capped" , nsd->capped ); + result.append( "max" , nsd->max ); + } + return true; } } cmdCollectionStatis; |