mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-30 11:30:37 +00:00
TODO/workaround: walredo quiescing broken with compaction_period=0
This commit is contained in:
@@ -199,7 +199,7 @@ async fn compaction_loop(tenant: Arc<Tenant>, cancel: CancellationToken) {
|
||||
|
||||
// Perhaps we did no work and the walredo process has been idle for some time:
|
||||
// give it a chance to shut down to avoid leaving walredo process running indefinitely.
|
||||
tenant.walredo_mgr.maybe_quiesce(period * 10);
|
||||
tenant.walredo_mgr.maybe_quiesce(period * 10); // TODO: broken with compaction_period 0
|
||||
|
||||
// Sleep
|
||||
if tokio::time::timeout(sleep_duration, cancel.cancelled())
|
||||
|
||||
Reference in New Issue
Block a user