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

bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 3efc156  Don't update records.config when other configs are reloaded
3efc156 is described below

commit 3efc1564e397f3aa2e15f64f9a2ce6d66df833f2
Author: Randall Meyer <[email protected]>
AuthorDate: Mon Sep 24 10:22:30 2018 -0700

    Don't update records.config when other configs are reloaded
    
    Prior to this change, when an operator updated a config file, it's
    backing config variable would get inserted into records.config on
    reload.
    
    The function modified is only used by the config file signaling mechanism.
---
 lib/records/P_RecCore.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/records/P_RecCore.cc b/lib/records/P_RecCore.cc
index 4c83b8a..1da0cc9 100644
--- a/lib/records/P_RecCore.cc
+++ b/lib/records/P_RecCore.cc
@@ -920,7 +920,7 @@ RecSetSyncRequired(char *name, bool lock)
     r1 = it->second;
     if (i_am_the_record_owner(r1->rec_type)) {
       rec_mutex_acquire(&(r1->lock));
-      r1->sync_required = REC_SYNC_REQUIRED;
+      r1->sync_required = REC_PEER_SYNC_REQUIRED;
       if (REC_TYPE_IS_CONFIG(r1->rec_type)) {
         r1->config_meta.update_required = REC_UPDATE_REQUIRED;
       }

Reply via email to