summaryrefslogtreecommitdiff
path: root/db/namespace.h
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2008-07-07 18:57:04 -0400
committerDwight <dmerriman@gmail.com>2008-07-07 18:57:04 -0400
commit1bf45a0843ae3f28977f3a26a637c478ac557371 (patch)
treea044ed15137cd89171abefb11722296007aeb99a /db/namespace.h
parentb3f5a1f27fa034302efe813fc9f650ae875728b8 (diff)
downloadmongo-1bf45a0843ae3f28977f3a26a637c478ac557371.tar.gz
fix deleteindexes and drop issuer0.0.7_rc3
minor hashtab fix ensureindex works now if collection DNE
Diffstat (limited to 'db/namespace.h')
-rw-r--r--db/namespace.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/db/namespace.h b/db/namespace.h
index f35b84acdd2..d70ae6db3af 100644
--- a/db/namespace.h
+++ b/db/namespace.h
@@ -46,8 +46,14 @@ const int MaxIndexes = 10;
class IndexDetails {
public:
DiskLoc head; /* btree head */
- /* index info object.
- { name:"nameofindex", ns:"parentnsname", key: {keypattobject} }
+
+ /* Location of index info object. Format:
+
+ { name:"nameofindex", ns:"parentnsname", key: {keypattobject} }
+
+ This object is in the system.indexes collection. Note that since we
+ have a pointer to the object here, the object in system.indexes must
+ never move.
*/
DiskLoc info;
@@ -70,6 +76,11 @@ public:
s += io.getStringField("name");
return s;
}
+
+ /* delete this index. does NOT celan up the system catalog
+ (system.indexes or system.namespaces) -- only NamespaceIndex.
+ */
+ void kill();
};
extern int bucketSizes[];