# HG changeset patch # User Julien Cristau # Date 1391007348 -3600 # Node ID 7f688378396902b53f76cdc7bae279b830aee6e0 # Parent 53225f66e7ca8f8a2ed67fda364eb8e79abffcdc [repo] Use a connection instead of a session for repo.gc_stats() diff -r 53225f66e7ca -r 7f6883783969 server/repository.py --- a/server/repository.py Wed Jan 29 15:56:44 2014 +0100 +++ b/server/repository.py Wed Jan 29 15:55:48 2014 +0100 @@ -514,8 +514,8 @@ nmax is the max number of (most) referenced object returned as the 'referenced' result """ - with self.internal_session() as session: - return session.call_service('repo_gc_stats', nmax=nmax) + with self.internal_cnx() as cnx: + return cnx.call_service('repo_gc_stats', nmax=nmax) def get_schema(self): """Return the instance schema.