From 51bc3411bae06396e14aab155d947bb760376bce Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 10 Dec 2018 21:06:20 +0100 Subject: [PATCH] core (memory/sqlite): do not call commitStatements if there is nothing to commit in checkUpdates --- sat/memory/sqlite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat/memory/sqlite.py b/sat/memory/sqlite.py index 18653522..97ddf336 100644 --- a/sat/memory/sqlite.py +++ b/sat/memory/sqlite.py @@ -990,7 +990,7 @@ class Updater(object): update_data = DATABASE_SCHEMAS[version] except KeyError: raise exceptions.InternalError("Missing update definition (version %d)" % version) - if "specific" in update_data: + if "specific" in update_data and update_raw: # if we have a specific, we must commit current statements # because a specific may modify database itself, and the database # must be in the expected state of the previous version.