~therp-nl/openobject-server/7.0-lp1244385-logical_error_in_test

Viewing all changes in revision 5097.

  • Committer: Olivier Dony
  • Date: 2013-10-11 10:03:13 UTC
  • Revision ID: odo@openerp.com-20131011100313-4bud8e9xq2afp9z7
[FIX] registry: avoid discarding registry or cache when the registry is fresh

When the sequence value is 1 it means that either:
 - the registry was just instantiated, so there is no
   reason to reload it immediately, the real checks will
   start at next request
 - the db was just created with new sequences set to 1,
   so there has been no change to reload

In both cases there is no good reason to reload the
registry, and it is actually a performance killer,
especially for cron workers that keep iterating on
the list of databases.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: