Commit 23e341a9 authored by Antoine Millet's avatar Antoine Millet
Browse files

Copy the whole object database values instead of using iterator

This change should fix the "dictionary changed size during iteration" caused by
a database modification while query processing initialization.
parent 2f36519f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -352,7 +352,7 @@ class TqlDatabase(object):
    #

    def _evaluate_ast(self, ast, requestor):
        objects = TqlResponse(requestor, (TqlResponseObject(obj) for obj in self._objects.itervalues()))
        objects = TqlResponse(requestor, (TqlResponseObject(obj) for obj in self._objects.values()))
        return self._evaluate_expression(objects, ast.expression)

    def _evaluate_expression(self, objects, expression):