This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 79b6e7d86750e30f378327158ad117e8f8ca95f0
Author: Evan Zelkowitz <[email protected]>
AuthorDate: Thu Dec 5 14:14:04 2024 -0700

    Fix records length for log roll and normalize (#11899)
    
    (cherry picked from commit 08c96898ee6bd420c4bdb23ae47b31a3e604a525)
---
 src/records/RecordsConfig.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/records/RecordsConfig.cc b/src/records/RecordsConfig.cc
index 8902515b8f..b0c656fcec 100644
--- a/src/records/RecordsConfig.cc
+++ b/src/records/RecordsConfig.cc
@@ -84,7 +84,7 @@ static const RecordElement RecordsConfig[] =
   {RECT_CONFIG, "proxy.config.output.logfile_perm", RECD_STRING, "rw-r--r--", 
RECU_RESTART_TS, RR_NULL, RECC_NULL, nullptr, RECA_NULL}
   ,
   // traffic.out rotation, default is 0 (aka rolling turned off) to preserve 
compatibility
-  {RECT_CONFIG, "proxy.config.output.logfile.rolling_enabled", RECD_INT, "0", 
RECU_DYNAMIC, RR_NULL, RECC_INT, "[0-2]", RECA_NULL}
+  {RECT_CONFIG, "proxy.config.output.logfile.rolling_enabled", RECD_INT, "0", 
RECU_DYNAMIC, RR_NULL, RECC_INT, "[0-3]", RECA_NULL}
   ,
   {RECT_CONFIG, "proxy.config.output.logfile.rolling_interval_sec", RECD_INT, 
"3600", RECU_DYNAMIC, RR_NULL, RECC_STR, "^[0-9]+$", RECA_NULL}
   ,
@@ -229,7 +229,7 @@ static const RecordElement RecordsConfig[] =
   {RECT_CONFIG, "proxy.config.diags.logfile.filename", RECD_STRING, 
"diags.log", RECU_DYNAMIC, RR_NULL, RECC_STR, "^[^[:space:]]+$", RECA_NULL}
   ,
   // diags.log rotation, default is 0 (aka rolling turned off) to preserve 
compatibility
-  {RECT_CONFIG, "proxy.config.diags.logfile.rolling_enabled", RECD_INT, "0", 
RECU_DYNAMIC, RR_NULL, RECC_INT, "[0-2]", RECA_NULL}
+  {RECT_CONFIG, "proxy.config.diags.logfile.rolling_enabled", RECD_INT, "0", 
RECU_DYNAMIC, RR_NULL, RECC_INT, "[0-3]", RECA_NULL}
   ,
   {RECT_CONFIG, "proxy.config.diags.logfile.rolling_interval_sec", RECD_INT, 
"3600", RECU_DYNAMIC, RR_NULL, RECC_STR, "^[0-9]+$", RECA_NULL}
   ,
@@ -519,7 +519,7 @@ static const RecordElement RecordsConfig[] =
   {RECT_CONFIG, "proxy.config.http.allow_multi_range", RECD_INT, "0", 
RECU_DYNAMIC, RR_NULL, RECC_INT, "[0-2]", RECA_NULL}
   ,
   // This defaults to a special invalid value so the HTTP transaction handling 
code can tell that it was not explicitly set.
-  {RECT_CONFIG, "proxy.config.http.normalize_ae", RECD_INT, "1", RECU_DYNAMIC, 
RR_NULL, RECC_INT, "[0-2]", RECA_NULL}
+  {RECT_CONFIG, "proxy.config.http.normalize_ae", RECD_INT, "1", RECU_DYNAMIC, 
RR_NULL, RECC_INT, "[0-3]", RECA_NULL}
   ,
 
   //        ####################################################

Reply via email to