Skip to content

Commit

Permalink
better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Oct 3, 2024
1 parent f6464ce commit f3e8061
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/redis_lua/broker_history_add_stream.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ if use_delta == "1" and top_offset ~= 1 then
end

if top_offset == 1 then
-- If a new epoch starts, try to delete existing stream, this may be important when
-- meta key is evicted by Redis LRU/LFU strategies. So we emulating eviction of stream key
-- here to keep meta key and stream keys consistent.
-- If a new epoch starts (thus top_offset is 1), try to delete the existing stream, this may
-- be important when the meta key is evicted by Redis LRU/LFU strategies. So we are emulating
-- an eviction of stream key here.
redis.call("del", stream_key)
prev_message_payload = ""
end
Expand Down

0 comments on commit f3e8061

Please sign in to comment.