changeset 3977:7c84b383824f

Don't create one big transaction when doing cache-keys cleanup. Should improve locking issues with db transactions when purging large ammount of keys
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 12 Jun 2013 09:34:28 +0200
parents 42bca6fa923b
children 4f31439c90d3
files rhodecode/lib/paster_commands/cache_keys.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/paster_commands/cache_keys.py	Wed Jun 12 01:36:35 2013 +0200
+++ b/rhodecode/lib/paster_commands/cache_keys.py	Wed Jun 12 09:34:28 2013 +0200
@@ -63,7 +63,7 @@
             for c_obj in _caches:
                 Session().delete(c_obj)
                 print 'removing key:%s' % (c_obj.cache_key)
-            Session().commit()
+                Session().commit()
         else:
             print 'nothing done exiting...'
         sys.exit(0)