From a7ce61af50c244806c21a20376fd85e072e8c79c Mon Sep 17 00:00:00 2001 From: Masaori Koshiba Date: Tue, 3 Oct 2023 10:53:10 +0900 Subject: [PATCH] s3_auth: Clear handling TSAction in the config_reloader --- plugins/s3_auth/s3_auth.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/s3_auth/s3_auth.cc b/plugins/s3_auth/s3_auth.cc index f43ce160066..a849cabf944 100644 --- a/plugins/s3_auth/s3_auth.cc +++ b/plugins/s3_auth/s3_auth.cc @@ -1053,7 +1053,9 @@ int config_reloader(TSCont cont, TSEvent event, void *edata) { Dbg(dbg_ctl, "reloading configs"); - S3Config *s3 = static_cast(TSContDataGet(cont)); + S3Config *s3 = static_cast(TSContDataGet(cont)); + s3->check_current_action(edata); + S3Config *file_config = gConfCache.get(s3->conf_fname()); if (!file_config || !file_config->valid()) { @@ -1064,7 +1066,6 @@ config_reloader(TSCont cont, TSEvent event, void *edata) { std::unique_lock lock(s3->reload_mutex); s3->copy_changes_from(file_config); - s3->check_current_action(edata); } if (s3->expiration() == 0) {