brbzull0 commented on code in PR #12813:
URL: https://github.com/apache/trafficserver/pull/12813#discussion_r2940120447
##########
src/mgmt/config/FileManager.cc:
##########
@@ -381,6 +381,16 @@
FileManager::ConfigManager::checkForUserUpdate(FileManager::RollBackCheckType ho
ink_mutex_acquire(&fileAccessLock);
if (this->statFile(&fileInfo) < 0) {
+ // File doesn't exist. If it previously existed (fileLastModified > 0),
+ // treat the deletion as a change so the reload handler can fall back
+ // to an alternative config file (e.g. remap.yaml -> remap.config).
+ if (fileLastModified > 0) {
+ if (how == FileManager::ROLLBACK_CHECK_AND_UPDATE) {
+ fileLastModified = 0;
Review Comment:
I think I can add this feature inside config_registry at some point in the
future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]