]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mon/LogMonitor.cc
import ceph quincy 17.2.1
[ceph.git] / ceph / src / mon / LogMonitor.cc
index 9103ddf7c5b5d307e936457a462419e31dfe425f..eb489e5dfc734d55b2b66ea55de5adf800bb5c7f 100644 (file)
@@ -387,6 +387,10 @@ void LogMonitor::log_external(const LogEntry& le)
   }
 
   if (g_conf()->mon_cluster_log_to_file) {
+    if (this->log_rotated.exchange(false)) {
+      this->log_external_close_fds();
+    }
+
     auto p = channel_fds.find(channel);
     int fd;
     if (p == channel_fds.end()) {