diff options
author | Aaron <aaron@10gen.com> | 2010-12-08 09:50:01 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2010-12-08 09:50:15 -0800 |
commit | 5e90fb163a439949033586178e6bbd7930fb78c8 (patch) | |
tree | 4a50c8e663b110fe9881355cd65b4bbc20c38906 /db/btree.h | |
parent | b8b9d6691f0be2733df8ead854d54432e2b68bd9 (diff) | |
download | mongo-5e90fb163a439949033586178e6bbd7930fb78c8.tar.gz |
btree delete internal key
Diffstat (limited to 'db/btree.h')
-rw-r--r-- | db/btree.h | 7 |
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 ); |