mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-19 12:09:48 +08:00
use the right query formatter
This commit is contained in:
@@ -106,7 +106,7 @@ def db_query_execute(cur, query, values, abort=True, max_timeout=300):
|
||||
except sqlite3.OperationalError as oe:
|
||||
if oe.message == "database is locked":
|
||||
timeout = min(max_timeout, timeout * 2 + timeout * random.random())
|
||||
log.error("Query timed out due to lock; retrying in %s: %s" % (timeout, namedb_format_query( query, values )))
|
||||
log.error("Query timed out due to lock; retrying in %s: %s" % (timeout, db_format_query( query, values )))
|
||||
time.sleep(timeout)
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user