diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-08-21 17:05:19 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-08-21 17:05:19 -0400 |
commit | a9dc788da113af1654525b05f827acfc09c8472c (patch) | |
tree | e973818a40a00633ad238ea05e52a196523cbc4b | |
parent | 1e1977a6989a0b45446cd75dd874eeacc4acefcb (diff) | |
download | mongo-a9dc788da113af1654525b05f827acfc09c8472c.tar.gz |
put capped info into stats
-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; |