Explorar o código

Fix issue where restarting a controller causes a DB write for each network member

Grant Limberg %!s(int64=3) %!d(string=hai) anos
pai
achega
f8e24f4629
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      controller/PostgreSQL.cpp

+ 1 - 0
controller/PostgreSQL.cpp

@@ -777,6 +777,7 @@ void PostgreSQL::initializeMembers()
 			std::string assignedAddresses = std::get<20>(row);
 			std::string assignedAddresses = std::get<20>(row);
 
 
 			config["id"] = memberId;
 			config["id"] = memberId;
+			config["address"] = memberId;
 			config["nwid"] = networkId;
 			config["nwid"] = networkId;
 			config["activeBridge"] = activeBridge.value_or(false);
 			config["activeBridge"] = activeBridge.value_or(false);
 			config["authorized"] = authorized.value_or(false);
 			config["authorized"] = authorized.value_or(false);