[CalendarServer-changes] [15097] CalendarServer/trunk/txdav/base/datastore/subpostgres.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Sep 3 13:55:23 PDT 2015


Revision: 15097
          http://trac.calendarserver.org//changeset/15097
Author:   cdaboo at apple.com
Date:     2015-09-03 13:55:23 -0700 (Thu, 03 Sep 2015)
Log Message:
-----------
Fix to allow running with only one DB connection.

Modified Paths:
--------------
    CalendarServer/trunk/txdav/base/datastore/subpostgres.py

Modified: CalendarServer/trunk/txdav/base/datastore/subpostgres.py
===================================================================
--- CalendarServer/trunk/txdav/base/datastore/subpostgres.py	2015-09-03 20:49:06 UTC (rev 15096)
+++ CalendarServer/trunk/txdav/base/datastore/subpostgres.py	2015-09-03 20:55:23 UTC (rev 15097)
@@ -260,7 +260,7 @@
             self.listenAddresses = []
 
         self.testMode = testMode
-        self.sharedBuffers = sharedBuffers if not testMode else 16
+        self.sharedBuffers = max(sharedBuffers if not testMode else 16, 16)
         self.maxConnections = maxConnections if not testMode else 8
         self.options = options
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150903/76f41d41/attachment.html>


More information about the calendarserver-changes mailing list