summaryrefslogtreecommitdiff
path: root/src/libtracker-direct/meson.build
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2018-07-20 16:05:12 +0200
committerSam Thursfield <sam@afuera.me.uk>2018-07-20 16:47:27 +0200
commit68381c1dd7b68b1f83eef5c8590965f18224c732 (patch)
treed8f7371093206449104988ef1fa9e1eae43e144a /src/libtracker-direct/meson.build
parent0dcb7ab20c5dd20db2bb955fd4fd64a2131059db (diff)
downloadtracker-68381c1dd7b68b1f83eef5c8590965f18224c732.tar.gz
libtracker-miner: Fix race which resulted in files being queued out of order
The TrackerFileNotifier signals need to be emitted in a heirarchical order. If we have this directory heirarchy... test-monitored/ test-monitored/file1.txt ...we must always emit ::file-created for 'test-monitored/' before we emit ::file-created for 'test-monitored/file1.txt'. The tracker_file_notifier_ensure_parents() function ensures that we do this, but it would previously not work correctly in situations where 'test-monitored/' was a configured indexing root, rather than a subdirectory of one of the roots. This was causing the tracker-miners functional tests to randomly fail with errors such as this: ** (tracker-miner-fs:18181): WARNING **: 16:01:00.461: Parent 'file:///home/sam/tracker-tests/tmpDSmsQI/test-monitored' not indexed yet This is presumably a regression from 2e2dd4f5dc650aefa4b7188cf1a612b2d27f84ba.
Diffstat (limited to 'src/libtracker-direct/meson.build')
0 files changed, 0 insertions, 0 deletions