summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2008-02-11 11:37:11 -0500
committerDwight <dmerriman@gmail.com>2008-02-11 11:37:11 -0500
commitd58f6303583762c74c9d90576d63ce818f1516b2 (patch)
tree5b60b97bd83f827adf6c5e4f172632dc611aebff /util
parente91eda24151567047219e9c925f3960fdc318dd7 (diff)
downloadmongo-d58f6303583762c74c9d90576d63ce818f1516b2.tar.gz
drop
Diffstat (limited to 'util')
-rw-r--r--util/hashtab.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/hashtab.h b/util/hashtab.h
index 0f0461072a6..8b8b53b182e 100644
--- a/util/hashtab.h
+++ b/util/hashtab.h
@@ -82,6 +82,13 @@ public:
return 0;
}
+ void kill(const Key& k) {
+ bool found;
+ int i = _find(k, found);
+ if( i >= 0 && found )
+ nodes[i].k.kill();
+ }
+
void put(const Key& k, const Type& value) {
bool found;
int i = _find(k, found);