mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Disable sync dbmap saves -- they remove nodes added by other tools.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
b9e0af9b95
commit
d5eb7ececf
1 file changed
+4
-4
@@ -543,10 +543,10 @@ class DBMap(dict):
|
||||
if not isinstance(node, DBMap): continue
|
||||
node.saveDB(sync=sync, save=save)
|
||||
# Remove db nodes not in children.
|
||||
if sync:
|
||||
for name in self.__db__.ls():
|
||||
if name not in self:
|
||||
self.__db__.delete(name)
|
||||
###if sync:
|
||||
### for name in self.__db__.ls():
|
||||
### if name not in self:
|
||||
### self.__db__.delete(name)
|
||||
|
||||
def importFromDB(self, obj, fields):
|
||||
"""Set fields in obj from db fields.
|
||||
|
||||