ia64/xen-unstable

changeset 6692:0c9c044fd00c

Disable sync dbmap saves -- they remove nodes added by other tools.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed Sep 07 21:13:46 2005 +0000 (2005-09-07)
parents c2f3f18c0d95
children 64ca0d3ea97f
files tools/python/xen/xend/xenstore/xsobj.py
line diff
     1.1 --- a/tools/python/xen/xend/xenstore/xsobj.py	Wed Sep 07 19:13:38 2005 +0000
     1.2 +++ b/tools/python/xen/xend/xenstore/xsobj.py	Wed Sep 07 21:13:46 2005 +0000
     1.3 @@ -543,10 +543,10 @@ class DBMap(dict):
     1.4              if not isinstance(node, DBMap): continue
     1.5              node.saveDB(sync=sync, save=save)
     1.6          # Remove db nodes not in children.
     1.7 -        if sync:
     1.8 -            for name in self.__db__.ls():
     1.9 -                if name not in self:
    1.10 -                    self.__db__.delete(name)
    1.11 +        ###if sync:
    1.12 +        ###    for name in self.__db__.ls():
    1.13 +        ###        if name not in self:
    1.14 +        ###            self.__db__.delete(name)
    1.15  
    1.16      def importFromDB(self, obj, fields):
    1.17          """Set fields in obj from db fields.