[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Disable sync dbmap saves -- they remove nodes added by other tools.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 0c9c044fd00caf7fa0f45f6305c3c7be64964b83
# Parent  c2f3f18c0d959bfdcb55828a8e387e784948ab34
Disable sync dbmap saves -- they remove nodes added by other tools.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r c2f3f18c0d95 -r 0c9c044fd00c tools/python/xen/xend/xenstore/xsobj.py
--- a/tools/python/xen/xend/xenstore/xsobj.py   Wed Sep  7 19:13:38 2005
+++ b/tools/python/xen/xend/xenstore/xsobj.py   Wed Sep  7 21:13:46 2005
@@ -543,10 +543,10 @@
             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.

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.