Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: third_party/buildbot_8_4p1/buildbot/db/enginestrategy.py

Issue 2126033003: Revert of Revert "Fix masters_test presubmit_tests by using serialized sqlite access." (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@buildbot-retry-concurrent
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/buildbot_8_4p1/buildbot/master.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/buildbot_8_4p1/buildbot/db/enginestrategy.py
diff --git a/third_party/buildbot_8_4p1/buildbot/db/enginestrategy.py b/third_party/buildbot_8_4p1/buildbot/db/enginestrategy.py
index 3d05cb6202327aa42c3fad40d390034c492704ef..cb711ce5d30dfe83b6e5c5c8eefb46edca43d772 100644
--- a/third_party/buildbot_8_4p1/buildbot/db/enginestrategy.py
+++ b/third_party/buildbot_8_4p1/buildbot/db/enginestrategy.py
@@ -80,6 +80,11 @@
# in-memory databases need exactly one connection
if not u.database:
kwargs['pool_size'] = 1
+ max_conns = 1
+
+ # allow serializing access to the db
+ if 'serialize_access' in u.query:
+ u.query.pop('serialize_access')
max_conns = 1
return u, kwargs, max_conns
« no previous file with comments | « no previous file | third_party/buildbot_8_4p1/buildbot/master.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698