From df30eda283e4fdb6945508e17ca48ae21528596c Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 16 Aug 2006 17:32:30 +0000 Subject: * Add some locking to prevent 2 aggregators from running at once. --- IkiWiki/Plugin/aggregate.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 2e4026757..23428cb0e 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -35,11 +35,13 @@ sub getopt () { #{{{ } #}}} sub checkconfig () { #{{{ - loadstate(); if ($IkiWiki::config{aggregate}) { + IkiWiki::lockwiki(); + loadstate(); IkiWiki::loadindex(); aggregate(); savestate(); + IkiWiki::unlockwiki(); } } #}}} -- cgit v1.2.3