Skip to content

Commit

Permalink
query fix dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Sep 18, 2019
1 parent f65f563 commit cb82644
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions trie/slimtrie_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cb82644

Please sign in to comment.