[c-c db-check] disable write security as well so we can delete stuff when needed (e.g. orphan TrInfo) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 22 Jul 2011 08:34:38 +0200
branchstable
changeset 7685 902909e5f733
parent 7684 9f8f8096d64b
child 7686 6580b5a0f1cf
[c-c db-check] disable write security as well so we can delete stuff when needed (e.g. orphan TrInfo)
server/checkintegrity.py
--- a/server/checkintegrity.py	Fri Jul 22 08:34:03 2011 +0200
+++ b/server/checkintegrity.py	Fri Jul 22 08:34:38 2011 +0200
@@ -344,7 +344,7 @@
     # yo, launch checks
     if checks:
         eids_cache = {}
-        with security_enabled(session, read=False): # ensure no read security
+        with security_enabled(session, read=False, write=False): # ensure no read security
             for check in checks:
                 check_func = globals()['check_%s' % check]
                 check_func(repo.schema, session, eids_cache, fix=fix)