Skip to content

Commit

Permalink
cloud_storage: add gate guard to aborted_transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Elena Anyusheva committed Jul 28, 2022
1 parent 4a98a1a commit 76cd899
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/v/cloud_storage/remote_partition.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "cloud_storage/types.h"
#include "storage/parser_errc.h"
#include "storage/types.h"
#include "utils/gate_guard.h"
#include "utils/retry_chain_node.h"
#include "utils/stream_utils.h"

Expand Down Expand Up @@ -501,6 +502,7 @@ remote_partition::get_term_last_offset(model::term_id term) const {

ss::future<std::vector<cluster::rm_stm::tx_range>>
remote_partition::aborted_transactions(offset_range offsets) {
gate_guard guard(_gate);
// Here we have to use kafka offsets to locate the segments and
// redpanda offsets to extract aborted transactions metadata because
// tx-manifests contains redpanda offsets.
Expand Down

0 comments on commit 76cd899

Please sign in to comment.