From fe2b62041eb9193e46d4fb0e6d5437558d8ee56d Mon Sep 17 00:00:00 2001 From: Ben Pope Date: Thu, 31 Oct 2024 07:45:37 +0000 Subject: [PATCH] tls: Watch move_to Signed-off-by: Ben Pope --- src/net/tls-impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/tls-impl.cc b/src/net/tls-impl.cc index 8c15899881..09457f9704 100644 --- a/src/net/tls-impl.cc +++ b/src/net/tls-impl.cc @@ -537,7 +537,7 @@ class tls::reloadable_credentials_base { } } } - future add_watch(const sstring& filename, fsnotifier::flags flags = fsnotifier::flags::close_write|fsnotifier::flags::delete_self) { + future add_watch(const sstring& filename, fsnotifier::flags flags = fsnotifier::flags::close_write|fsnotifier::flags::delete_self|fsnotifier::flags::move_to) { return _fsn.create_watch(filename, flags).then([this, filename = filename](fsnotifier::watch w) { auto t = w.token(); // we might create multiple watches for same token in case of dirs, avoid deleting previously