summaryrefslogtreecommitdiff
path: root/db/namespace.h
diff options
context:
space:
mode:
Diffstat (limited to 'db/namespace.h')
-rw-r--r--db/namespace.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/db/namespace.h b/db/namespace.h
index e8e056ed958..0854a666ed6 100644
--- a/db/namespace.h
+++ b/db/namespace.h
@@ -73,11 +73,12 @@ public:
extern int bucketSizes[];
+/* this is the "header" for a collection that has all its details. in the .ns file.
+*/
class NamespaceDetails {
public:
NamespaceDetails() {
- /* be sure to initialize new fields here, otherwise they will contain garbage by default.
- */
+ /* be sure to initialize new fields here -- doesn't default to zeroes the way we use it */
datasize = nrecords = 0;
lastExtentSize = 0;
nIndexes = 0;