[tor-commits] [weather/master] Add workaround for concurrency problem in database access. Fixes #5521

kaner at torproject.org kaner at torproject.org
Sun Oct 5 10:54:08 UTC 2014


commit af95f0777831d8035b27f06163b914e5cb98e705
Author: Christian Fromme <kaner at strace.org>
Date:   Sun Oct 5 12:49:49 2014 +0200

    Add workaround for concurrency problem in database access. Fixes #5521
---
 weather/settings.py |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/weather/settings.py b/weather/settings.py
index c665460..9c6ecb5 100644
--- a/weather/settings.py
+++ b/weather/settings.py
@@ -24,9 +24,14 @@ DATABASES = {
         'PASSWORD': '',                  # Not used with sqlite3.
         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
+        'OPTIONS': { 'timeout': 20, },
     }
 }
 
+DATABASE_OPTIONS: {
+        'timeout': 20,
+}
+
 # Local time zone for this installation. Choices can be found here:
 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
 # although not all choices may be available on all operating systems.



More information about the tor-commits mailing list