summaryrefslogtreecommitdiff
path: root/db/storage.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/storage.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/storage.h')
-rw-r--r--db/storage.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/db/storage.h b/db/storage.h
index dd15a38df8e..c11a548f103 100644
--- a/db/storage.h
+++ b/db/storage.h
@@ -15,7 +15,6 @@ class Extent;
class BtreeBucket;
class JSObj;
class PhysicalDataFile;
-class Bucket;
class DiskLoc {
int fileNo; /* this will be volume, file #, etc. */
@@ -84,12 +83,15 @@ public:
return fileNo < b.fileNo;
}
+ /* get the "thing" associated with this disk location.
+ it is assumed the object is what it is -- you must asure that:
+ think of this as an unchecked type cast.
+ */
JSObj obj() const;
Record* rec() const;
DeletedRecord* drec() const;
Extent* ext() const;
BtreeBucket* btree() const;
- Bucket* bucket() const;
PhysicalDataFile& pdf() const;
};