diff options
author | drebs <drebs@leap.se> | 2014-04-07 12:48:25 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2014-04-09 14:44:12 -0300 |
commit | 45ffe1dd22d6e902a7e8eeca786b7ad63ec1d139 (patch) | |
tree | a8e41967fb8a2806c008d5c697cf66defd44cbdc | |
parent | 573909b10d77ef3d889d33cfaeb3fdadd0135daf (diff) |
Prevent Couch Server State from making one unneeded GET request (#5386).
-rw-r--r-- | common/changes/feature_5386_prevent-uneeded-get-on-couch-server-state | 2 | ||||
-rw-r--r-- | common/src/leap/soledad/common/couch.py | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/common/changes/feature_5386_prevent-uneeded-get-on-couch-server-state b/common/changes/feature_5386_prevent-uneeded-get-on-couch-server-state new file mode 100644 index 00000000..95919873 --- /dev/null +++ b/common/changes/feature_5386_prevent-uneeded-get-on-couch-server-state @@ -0,0 +1,2 @@ + o Prevent Couch Server State from making one uneeded GET request on + instantiation (#5386). 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): |