aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/aggregate.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-16 17:32:30 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-16 17:32:30 +0000
commitdf30eda283e4fdb6945508e17ca48ae21528596c (patch)
tree7bceb992a97d978032bcc466cb6b77a6449ca98a /IkiWiki/Plugin/aggregate.pm
parent6e5ae610e4eb31f983def35fd8d4cffb48fe4b1f (diff)
downloadikiwiki-df30eda283e4fdb6945508e17ca48ae21528596c.tar
ikiwiki-df30eda283e4fdb6945508e17ca48ae21528596c.tar.gz
* Add some locking to prevent 2 aggregators from running at once.
Diffstat (limited to 'IkiWiki/Plugin/aggregate.pm')
-rw-r--r--IkiWiki/Plugin/aggregate.pm4
1 files changed, 3 insertions, 1 deletions
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();
}
} #}}}