summaryrefslogtreecommitdiff
path: root/db/btree.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2010-12-08 09:50:01 -0800
committerAaron <aaron@10gen.com>2010-12-08 09:50:15 -0800
commit5e90fb163a439949033586178e6bbd7930fb78c8 (patch)
tree4a50c8e663b110fe9881355cd65b4bbc20c38906 /db/btree.h
parentb8b9d6691f0be2733df8ead854d54432e2b68bd9 (diff)
downloadmongo-5e90fb163a439949033586178e6bbd7930fb78c8.tar.gz
btree delete internal key
Diffstat (limited to 'db/btree.h')
-rw-r--r--db/btree.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/btree.h b/db/btree.h
index b9185d9245e..98c15446afe 100644
--- a/db/btree.h
+++ b/db/btree.h
@@ -430,6 +430,13 @@ namespace mongo {
void setInternalKey( const DiskLoc thisLoc, int keypos,
const DiskLoc recordLoc, const BSONObj &key, const Ordering &order,
const DiskLoc lchild, const DiskLoc rchild, IndexDetails &idx);
+
+ /**
+ * Deletes the specified key, replacing it with the key immediately
+ * preceding or succeeding it in the btree. Either the left or right
+ * child of the specified key must be non null.
+ */
+ void deleteInternalKey( const DiskLoc thisLoc, int keypos, IndexDetails &id, const Ordering &order );
public:
/** simply builds and returns a dup key error message string */
static string dupKeyError( const IndexDetails& idx , const BSONObj& key );