jrushford commented on issue #7669: URL: https://github.com/apache/trafficserver/issues/7669#issuecomment-819885995
Before the database is opened with MMDB_open(), why not first copy the database file as possibly a hidden file and then MMDB_open() and get a file handle to the copy. Any changes to the configured database file would not affect ATS but, the plugin could notice the change to the configured filename and make another copy, use MMDB_open() to get a 2nd file handle to the new copy. When it is determined safe to do so, swap the the active file handle with the new file handle and MMDB_close the old file handle. Maybe using a smart pointer to the active file handle or a mutex in order to swap file handles. -- 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. For queries about this service, please contact Infrastructure at: [email protected]
