From cb826445000949858feaa693a67c6a433412c0f5 Mon Sep 17 00:00:00 2001 From: drdr xp Date: Wed, 18 Sep 2019 18:56:51 +0800 Subject: [PATCH] query fix dead code --- trie/slimtrie_query.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/trie/slimtrie_query.go b/trie/slimtrie_query.go index cae0acf9..d36cef20 100644 --- a/trie/slimtrie_query.go +++ b/trie/slimtrie_query.go @@ -213,12 +213,12 @@ func (st *SlimTrie) GetID(key string) int32 { // eqID must not be -1 - tail := key[i>>3:] - if st.cmpLeafPrefix(tail, qr) == 0 { - return eqID - } + // tail := key[i>>3:] + // if st.cmpLeafPrefix(tail, qr) == 0 { + // return eqID + // } - return -1 + // return -1 if st.nodes.WithLeafPrefix { if i == l {