From c677f652128b5234f742934ccd9b3cc6b7098275 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Mon, 4 Apr 2022 12:07:23 +0200 Subject: [PATCH] Avoid double initialization of cleaning policy in standby mode Cleaning policy is initialized on standby activate, after all the metadata from primary cache is flushed and the actual recovery is being performed. Thus initializing it earlier on standby attach is incorrect. Signed-off-by: Robert Baldyga --- src/mngt/ocf_mngt_cache.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mngt/ocf_mngt_cache.c b/src/mngt/ocf_mngt_cache.c index 3b5f274..037aa5b 100644 --- a/src/mngt/ocf_mngt_cache.c +++ b/src/mngt/ocf_mngt_cache.c @@ -2267,7 +2267,6 @@ struct ocf_pipeline_properties _ocf_mngt_cache_standby_attach_pipeline_propertie OCF_PL_STEP(_ocf_mngt_init_cleaner), OCF_PL_STEP(_ocf_mngt_standby_init_structures_attach), OCF_PL_STEP(_ocf_mngt_attach_populate_free), - OCF_PL_STEP(_ocf_mngt_load_init_cleaning), OCF_PL_STEP(_ocf_mngt_standby_preapre_mempool), OCF_PL_STEP(_ocf_mngt_standby_init_pio_concurrency), OCF_PL_STEP(_ocf_mngt_zero_superblock),