diff options
author | Dwight <dmerriman@gmail.com> | 2008-06-06 09:38:22 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2008-06-06 09:38:22 -0400 |
commit | 877b72efcdd55f9fc9b271c707d4b489e551793d (patch) | |
tree | ac0ed3a446b606f89ba0c64d695f3dd3f86418d4 /db/btree.h | |
parent | ed259a42e88befe6da414d95736e6562c615a32a (diff) | |
download | mongo-877b72efcdd55f9fc9b271c707d4b489e551793d.tar.gz |
mysterious disappearing blog post fix
Diffstat (limited to 'db/btree.h')
-rw-r--r-- | db/btree.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/db/btree.h b/db/btree.h index a2b7c43cf9d..407a954ca27 100644 --- a/db/btree.h +++ b/db/btree.h @@ -114,12 +114,12 @@ class BtreeBucket : public BucketBasics { friend class BtreeCursor;
public:
void dump();
- /* rc: 0 = ok */
- static DiskLoc addHead(const char *ns); /* start a new index off, empty */
- int insert(DiskLoc thisLoc, const char *ns, DiskLoc recordLoc,
+
+ static DiskLoc addHead(IndexDetails&); /* start a new index off, empty */
+ int insert(DiskLoc thisLoc, DiskLoc recordLoc,
JSObj& key, bool dupsAllowed, IndexDetails& idx, bool toplevel);
-// void update(const DiskLoc& recordLoc, JSObj& key);
- bool unindex(const DiskLoc& thisLoc, const char *ns, JSObj& key, const DiskLoc& recordLoc);
+
+ bool unindex(const DiskLoc& thisLoc, IndexDetails& id, JSObj& key, const DiskLoc& recordLoc);
/* locate may return an "unused" key that is just a marker. so be careful.
looks for a key:recordloc pair.
@@ -134,14 +134,14 @@ public: void shape(stringstream&);
private:
void fixParentPtrs(const DiskLoc& thisLoc);
- void delBucket(const DiskLoc& thisLoc, const char *ns);
- void delKeyAtPos(const DiskLoc& thisLoc, const char *ns, int p);
+ void delBucket(const DiskLoc& thisLoc, IndexDetails&);
+ void delKeyAtPos(const DiskLoc& thisLoc, IndexDetails& id, int p);
JSObj keyAt(int keyOfs) { return keyOfs >= n ? JSObj() : keyNode(keyOfs).key; }
static BtreeBucket* allocTemp(); /* caller must release with free() */
- void insertHere(DiskLoc thisLoc, const char *ns, int keypos,
+ void insertHere(DiskLoc thisLoc, int keypos,
DiskLoc recordLoc, JSObj& key,
DiskLoc lchild, DiskLoc rchild, IndexDetails&);
- int _insert(DiskLoc thisLoc, const char *ns, DiskLoc recordLoc,
+ int _insert(DiskLoc thisLoc, DiskLoc recordLoc,
JSObj& key, bool dupsAllowed,
DiskLoc lChild, DiskLoc rChild, IndexDetails&);
bool find(JSObj& key, DiskLoc recordLoc, int& pos);
|