summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gray <ben@benjamg.com>2012-02-27 16:06:56 +0000
committerMartin Sustrik <sustrik@250bpm.com>2012-02-28 16:05:12 +0100
commitc6fa5ac5f79f65713455f0a387e3d7daf30ec7bf (patch)
tree4d4481c77cb15aed87bb4843bc09729173798317
parent1372c9b6f40872663201bc9d78558189a7220c36 (diff)
update lower bound flag when removing topics
-rw-r--r--src/trie.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/trie.cpp b/src/trie.cpp
index 7bb13e3..af6cdd9 100644
--- a/src/trie.cpp
+++ b/src/trie.cpp
@@ -186,6 +186,7 @@ bool xs::trie_t::rm (unsigned char *prefix_, size_t size_)
// The pruned node is the left-most node ptr in the
// node table => keep the right-most node
node = next.table [count - 1];
+ min += count - 1;
}
else if (c == min + count - 1) {
// The pruned node is the right-most node ptr in the