Commit 3810690
committed
storage: skip local housekeeping and gc for cloud topics
disk_log_impl gc() and housekeeping() are no-ops for cloud topics:
is_locally_collectable() and is_locally_compacted() are both false, so
do_gc returns nullopt and local compaction is skipped. The local log is
trimmed by ctp_stm and compaction happens at L1.
do_gc asserts it is not reached for tiered_cloud, so returning early for
cloud topics also keeps that invariant true: housekeeping_scan calls
gc()/housekeeping() for every registered log, cloud topics included.
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>1 parent 03bdc56 commit 3810690
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1362 | 1362 | | |
1363 | 1363 | | |
1364 | 1364 | | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
1365 | 1370 | | |
1366 | 1371 | | |
1367 | 1372 | | |
| |||
1767 | 1772 | | |
1768 | 1773 | | |
1769 | 1774 | | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1770 | 1780 | | |
1771 | 1781 | | |
1772 | 1782 | | |
1773 | 1783 | | |
1774 | 1784 | | |
1775 | 1785 | | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
1776 | 1790 | | |
1777 | 1791 | | |
1778 | 1792 | | |
| |||
0 commit comments