« Previous | Next » 

Revision d2adbc97

IDd2adbc973f93a73c71af72b914acdf6bb86ff50c
Parent 85ddde63
Child 952f1bb2

Added by Christian Müller about 7 years ago

[BUGFIX] Avoid "too many open files" exception during I18n filesystem scan

The I18n Service scans the filesystem for localized files in order to build
a list of available locales, this is done with a RecursiveIterator, which
will keep handles open in nested structures. A simple stack like now
used in the FileMonitor prevents the problem of "too many open files"
(leading to a fatal error) and at the same time brings clear performance
boost. Additionally hidden directories and files (starting with ".") are
ignored now.

Change-Id: Ia2df58da5fbfd708b56af3726e31554ef0c1ece3
Releases: master, 3.0, 2.3
Fixes: NEOS-111
(cherry picked from commit e6b5455225cf649de9ca2a2f919094b07429da01)

  • added
  • modified
  • copied
  • renamed
  • deleted