diff options
author | Michael Hamann <michael@content-space.de> | 2011-02-06 16:47:38 +0100 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2011-02-06 17:47:17 +0100 |
commit | 9f881d099df700f068e5cc014d089dd9639db731 (patch) | |
tree | d4bc29af80f6fb8bd5b98e62b69a4a14845e8e83 /lib/scripts/toolbar.js | |
parent | 0993d1c5d3a1738d8aeef80d1d03d3189f5ca858 (diff) | |
download | rpg-9f881d099df700f068e5cc014d089dd9639db731.tar.gz rpg-9f881d099df700f068e5cc014d089dd9639db731.tar.bz2 |
Only remove the indexer lock when there is really a stale lock
Previously the rmdir could be executed when the lock directory had been
deleted by another indexer already. This could lead to a race condition
when another indexer call creates the lock again between the if and the
rmdir. This issue still exists for stale lock directories but they
normally shouldn't exist.
This also prevents the loop from becoming an endless loop when the lock
directory can't be created.
This change also fixes a syntax error in the indexer and prevents an
endless loop when the lock directory exists but can't be deleted.
Diffstat (limited to 'lib/scripts/toolbar.js')
0 files changed, 0 insertions, 0 deletions