@@ -207,8 +207,9 @@ ss::future<> cache::clean_up_at_start() {
207207 auto filepath_to_remove = file_item.path ;
208208
209209 // delete only tmp files that are left from previous RedPanda run
210- if (std::string_view (filepath_to_remove)
211- .ends_with (cache_tmp_file_extension)) {
210+ if (
211+ std::string_view (filepath_to_remove)
212+ .ends_with (cache_tmp_file_extension)) {
212213 try {
213214 co_await delete_file_and_empty_parents (filepath_to_remove);
214215 deleted_bytes += file_item.size ;
@@ -574,8 +575,9 @@ ss::future<> cache::trim(
574575 exhaustive_result.deleted_size , size_to_delete);
575576 objects_to_delete -= std::min (
576577 exhaustive_result.deleted_count , objects_to_delete);
577- if ((size_to_delete > undeletable_bytes
578- || objects_to_delete > undeletable_objects)) {
578+ if (
579+ (size_to_delete > undeletable_bytes
580+ || objects_to_delete > undeletable_objects)) {
579581 const auto msg = fmt::format (
580582 " trim: failed to free sufficient space in exhaustive trim, {} "
581583 " bytes, {} objects still require deletion" ,
@@ -720,8 +722,9 @@ ss::future<cache::trim_result> cache::do_trim(
720722 }
721723
722724 // skip tmp files since someone may be writing to it
723- if (std::string_view (file_stat.path )
724- .ends_with (cache_tmp_file_extension)) {
725+ if (
726+ std::string_view (file_stat.path )
727+ .ends_with (cache_tmp_file_extension)) {
725728 return true ;
726729 }
727730
@@ -1226,8 +1229,8 @@ ss::future<> cache::put(
12261229 probe.put_ended ();
12271230 });
12281231 auto filename = normal_key_path.filename ();
1229- if (std::string_view (filename. native ())
1230- .ends_with (cache_tmp_file_extension)) {
1232+ if (
1233+ std::string_view (filename. native ()) .ends_with (cache_tmp_file_extension)) {
12311234 throw std::invalid_argument (
12321235 fmt::format (
12331236 " Cache file key {} is ending with tmp extension {}." ,
@@ -1601,9 +1604,10 @@ cache::trim_carryover(uint64_t delete_bytes, uint64_t delete_objects) {
16011604 / std::filesystem::relative (
16021605 std::filesystem::path (file_stat.path ), _cache_dir);
16031606
1604- if (auto estimate = _access_time_tracker.get (rel_path.native ());
1605- estimate.has_value ()
1606- && estimate->time_point () != file_stat.access_time ) {
1607+ if (
1608+ auto estimate = _access_time_tracker.get (rel_path.native ());
1609+ estimate.has_value ()
1610+ && estimate->time_point () != file_stat.access_time ) {
16071611 vlog (
16081612 log.trace ,
16091613 " carryover file {} was accessed ({}) since the last trim ({}), "
0 commit comments