[CalendarServer-changes] [11443] CalendarServer/trunk/txdav/base/datastore/subpostgres.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jun 27 11:47:39 PDT 2013
Revision: 11443
http://trac.calendarserver.org//changeset/11443
Author: sagen at apple.com
Date: 2013-06-27 11:47:39 -0700 (Thu, 27 Jun 2013)
Log Message:
-----------
Always go through pg_ctl
Modified Paths:
--------------
CalendarServer/trunk/txdav/base/datastore/subpostgres.py
Modified: CalendarServer/trunk/txdav/base/datastore/subpostgres.py
===================================================================
--- CalendarServer/trunk/txdav/base/datastore/subpostgres.py 2013-06-27 18:47:22 UTC (rev 11442)
+++ CalendarServer/trunk/txdav/base/datastore/subpostgres.py 2013-06-27 18:47:39 UTC (rev 11443)
@@ -402,22 +402,6 @@
createDatabaseCursor.execute("commit")
return createDatabaseConn, createDatabaseCursor
- # TODO: always go through pg_ctl start
- try:
- createDatabaseConn, createDatabaseCursor = createConnection()
- except pgdb.DatabaseError:
- # We could not connect the database, so attempt to start it
- pass
- except Exception, e:
- # Some other unexpected error is preventing us from connecting
- # to the database
- log.warn("Failed to connect to Postgres: {e}", e=e)
- else:
- # Database is running, so just use our connection
- self.ready(createDatabaseConn, createDatabaseCursor)
- self.deactivateDelayedShutdown()
- return
-
monitor = _PostgresMonitor(self)
pgCtl = self.pgCtl()
# check consistency of initdb and postgres?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130627/d756fb7d/attachment.html>
More information about the calendarserver-changes
mailing list