Merge pull request #6844 from lafirest/fix/slow_subs_index
fix(emqx_slow_subs): fix index update error
This commit is contained in:
commit
7e012b7b90
|
@ -262,7 +262,7 @@ try_insert_to_topk(MaxSize, Now, LastUpdateValue, TimeSpan, Id) ->
|
|||
-spec find_last_update_value(id()) -> non_neg_integer().
|
||||
find_last_update_value(Id) ->
|
||||
case ets:next(?INDEX_TAB, ?INDEX(0, Id)) of
|
||||
#index_tab{index = ?INDEX(LastUpdateValue, Id)} ->
|
||||
?INDEX(LastUpdateValue, Id) ->
|
||||
LastUpdateValue;
|
||||
_ ->
|
||||
0
|
||||
|
|
Loading…
Reference in New Issue