fix(sessds): Avoid stream hash collisions
This commit is contained in:
parent
2e56810ea2
commit
2e2f3cb2aa
|
@ -169,7 +169,7 @@ del_subscription(SubId, S0) ->
|
|||
|
||||
ensure_iterator(TopicFilter, StartTime, SubId, {{RankX, RankY}, Stream}, S) ->
|
||||
%% TODO: hash collisions
|
||||
Key = {SubId, erlang:phash2(Stream)},
|
||||
Key = {SubId, Stream},
|
||||
case emqx_persistent_session_ds_state:get_stream(Key, S) of
|
||||
undefined ->
|
||||
?SLOG(debug, #{
|
||||
|
|
Loading…
Reference in New Issue