From 8fdfa0c17cf492f39e675f7502596754f6e5aeb4 Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Garg Date: Tue, 1 Dec 2015 14:23:08 +0530 Subject: libglusterfs: close & open cmd_history.log on log rotate Post log rotate, cmd_history.log is not refreshed (closed & opened back) due to which new commands still land up in the log rotated file. Fix is to close and open cmd_history.log file upon log rotation Change-Id: Ie6990c9d55b0afa544bc5c84de3db49ff4b1299b BUG: 1286959 Signed-off-by: Gaurav Kumar Garg Reviewed-on: http://review.gluster.org/12832 Smoke: Gluster Build System CentOS-regression: Gluster Build System Reviewed-by: Niels de Vos NetBSD-regression: NetBSD Build System --- libglusterfs/src/logging.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfs/src/logging.h') diff --git a/libglusterfs/src/logging.h b/libglusterfs/src/logging.h index 515b4372e8a..25a9e42d71c 100644 --- a/libglusterfs/src/logging.h +++ b/libglusterfs/src/logging.h @@ -95,6 +95,7 @@ typedef enum { typedef struct gf_log_handle_ { pthread_mutex_t logfile_mutex; uint8_t logrotate; + uint8_t cmd_history_logrotate; gf_loglevel_t loglevel; int gf_log_syslog; gf_loglevel_t sys_log_level; -- cgit