xmlrpc-sync: lock config writes during merge.

This might prevent race conditions while the user interface is trying to save data at the same time the xmlrpc client pushes new data. Need some further testing.
This commit is contained in:
Ad Schellevis 2021-06-26 00:01:11 +02:00
parent 9735174eac
commit 60ffb74043

View File

@ -137,6 +137,8 @@ function filter_configure_xmlrpc()
function restore_config_section_xmlrpc($new_config)
{
global $config;
// lock config write during merge
OPNsense\Core\Config::getInstance()->lock();
require_once("interfaces.inc");
require_once("filter.inc");