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