From 45ffe1dd22d6e902a7e8eeca786b7ad63ec1d139 Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 7 Apr 2014 12:48:25 -0300 Subject: Prevent Couch Server State from making one unneeded GET request (#5386). --- common/src/leap/soledad/common/couch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/src/leap/soledad') diff --git a/common/src/leap/soledad/common/couch.py b/common/src/leap/soledad/common/couch.py index b836c997..9fb717c2 100644 --- a/common/src/leap/soledad/common/couch.py +++ b/common/src/leap/soledad/common/couch.py @@ -1489,9 +1489,9 @@ class CouchServerState(ServerState): :return: The CouchDatabase object. :rtype: CouchDatabase """ - return CouchDatabase.open_database( - self._couch_url + '/' + dbname, - create=False, + return CouchDatabase( + self._couch_url, + dbname, ensure_ddocs=False) def ensure_database(self, dbname): -- cgit v1.2.3