Skip to content

Commit

Permalink
also remove timestamp index when deleting segment
Browse files Browse the repository at this point in the history
Co-authored-by: Carl Hörberg <carl@84codes.com>
  • Loading branch information
viktorerlingsson and carlhoerberg committed Nov 13, 2024
1 parent bffba44 commit 7bbbae3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lavinmq/amqp/queue/stream_queue_message_store.cr
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ module LavinMQ::AMQP
@size -= msg_count if msg_count
@segment_last_ts.delete(seg_id)
@offset_index.delete(seg_id)
@timestamp_index.delete(seg_id)
@bytesize -= mfile.size - 4
mfile.delete.close
@replicator.try &.delete_file(mfile.path)
Expand Down

0 comments on commit 7bbbae3

Please sign in to comment.