~danbnicholson/intltool/intltool

Viewing all changes in revision 748.

  • Committer: Danilo Šegan
  • Date: 2017-05-23 04:14:58 UTC
  • mfrom: (747.1.1 intltool)
  • Revision ID: danilo@canonical.com-20170523041458-7ic4si3n8q1ywal2
Avoid a race where some processes try to use a partial cache file that is still being written to.
Note that we release the lock before load_cache, because if we got the lock, the cache is already completely written and it is OK to have multiple parallel readers

Without this patch, translation files would randomly miss translations for some or all languages.

Bug #1687644: load_cache race (fix by Bernhard M. Wiedemann).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: