Skip to content

Commit

Permalink
c/partition: fix acquiring _archiver_reset_mutex
Browse files Browse the repository at this point in the history
(cherry picked from commit 40cc8af)
  • Loading branch information
ztlpn authored and vbotbuildovich committed Dec 15, 2023
1 parent 5e9b7c7 commit 98752ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/v/cluster/partition.cc
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@ ss::future<> partition::stop() {
// `partition_manager::do_shutdown` (caller of stop) will assert
// out on any thrown exceptions. Hence, acquire the units without
// a timeout or abort source.
auto archiver_reset_guard = ss::get_units(_archiver_reset_mutex, 1);
auto archiver_reset_guard = co_await ss::get_units(
_archiver_reset_mutex, 1);

if (_archiver) {
_upload_housekeeping.local().deregister_jobs(
Expand Down

0 comments on commit 98752ef

Please sign in to comment.