[FIX] registry: restore `elif` changed to `if` in previous commit, for better readability (no effect)

This should have no effect because when the first `if`
is entered a new registry is instantiated with
the default value for base_cache_signaling_sequence
set to 1, preventing entering the next `if` even
without `elif`.

bzr revid: odo@openerp.com-20131011123914-7zuvd9mch21yxgj8
This commit is contained in:
Olivier Dony 2013-10-11 14:39:14 +02:00
parent 78579d289b
commit 088cb0255d
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ class RegistryManager(object):
# Check if the model caches must be invalidated (e.g. after a write
# occured on another process). Don't clear right after a registry
# has been reload.
if registry.base_cache_signaling_sequence > 1 and registry.base_cache_signaling_sequence != c:
elif registry.base_cache_signaling_sequence > 1 and registry.base_cache_signaling_sequence != c:
_logger.info("Invalidating all model caches after database signaling.")
registry.clear_caches()
registry.reset_any_cache_cleared()