From c6fa5ac5f79f65713455f0a387e3d7daf30ec7bf Mon Sep 17 00:00:00 2001 From: Ben Gray Date: Mon, 27 Feb 2012 16:06:56 +0000 Subject: update lower bound flag when removing topics --- src/trie.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/trie.cpp') 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 -- cgit v1.2.3