Skip to content

Commit

Permalink
kafka: fix off-by-one in timequery
Browse files Browse the repository at this point in the history
Not easy to test that this is right so not going to for now.
  • Loading branch information
nvartolomei committed Apr 30, 2024
1 parent a40999d commit 8f2de96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v/kafka/server/handlers/list_offsets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static ss::future<list_offset_partition_response> list_offsets_partition(
auto res = co_await kafka_partition->timequery(storage::timequery_config{
kafka_partition->start_offset(),
timestamp,
offset,
model::prev_offset(offset),
kafka_read_priority(),
{model::record_batch_type::raft_data},
octx.rctx.abort_source().local()});
Expand Down

0 comments on commit 8f2de96

Please sign in to comment.