# HG changeset patch # User Julien Cristau # Date 1312214388 -7200 # Node ID badfd5524ab65d20c722b759aa9d8c09702082b1 # Parent fb231d62addae3030aab767e42d2742d0785b898 [repo] Stop setting hashmode on schema At best it was a no-op, at worst it created race conditions. diff -r fb231d62adda -r badfd5524ab6 server/repository.py --- a/server/repository.py Mon Aug 01 17:58:28 2011 +0200 +++ b/server/repository.py Mon Aug 01 17:59:48 2011 +0200 @@ -505,12 +505,7 @@ This is a public method, not requiring a session id. """ - try: - # necessary to support pickling used by pyro - self.schema.__hashmode__ = 'pickle' - return self.schema - finally: - self.schema.__hashmode__ = None + return self.schema def get_cubes(self): """Return the list of cubes used by this instance. diff -r fb231d62adda -r badfd5524ab6 server/test/unittest_repository.py --- a/server/test/unittest_repository.py Mon Aug 01 17:58:28 2011 +0200 +++ b/server/test/unittest_repository.py Mon Aug 01 17:59:48 2011 +0200 @@ -366,7 +366,6 @@ schema = cnx.get_schema() self.failUnless(cnx.vreg) self.failUnless('etypes'in cnx.vreg) - self.assertEqual(schema.__hashmode__, None) cu = cnx.cursor() rset = cu.execute('Any U,G WHERE U in_group G') user = iter(rset.entities()).next()