summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-08-21 17:05:19 -0400
committerEliot Horowitz <eliot@10gen.com>2009-08-21 17:05:19 -0400
commita9dc788da113af1654525b05f827acfc09c8472c (patch)
treee973818a40a00633ad238ea05e52a196523cbc4b
parent1e1977a6989a0b45446cd75dd874eeacc4acefcb (diff)
downloadmongo-a9dc788da113af1654525b05f827acfc09c8472c.tar.gz
put capped info into stats
-rw-r--r--db/dbcommands.cpp5
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;