summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/CGI.pm5
-rw-r--r--debian/changelog4
-rwxr-xr-xikiwiki.pl1
3 files changed, 6 insertions, 4 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index 53237bcdb..14861e398 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -67,8 +67,6 @@ sub decode_form_utf8 ($) { #{{{
sub cgi_recentchanges ($) { #{{{
my $q=shift;
- unlockwiki();
-
# Optimisation: building recentchanges means calculating lots of
# links. Memoizing htmllink speeds it up a lot (can't be memoized
# during page builds as the return values may change, but they
@@ -715,6 +713,9 @@ sub cgi (;$$) { #{{{
elsif ($do eq 'hyperestraier') {
cgi_hyperestraier();
}
+
+ # Need to lock the wiki before getting a session.
+ lockwiki();
if (! $session) {
CGI::Session->name("ikiwiki_session_".encode_utf8($config{wikiname}));
diff --git a/debian/changelog b/debian/changelog
index d38152132..b622fa006 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,8 +12,10 @@ ikiwiki (1.34) UNRELEASED; urgency=low
* Change how post signin actions are propigated through the signin process;
they're now stored in the session.
* Add optional "desc" parameter to shortcut definitions.
+ * Avoid locking the wiki at all when handling some basic cgi stuff
+ (searches, recentchanges).
- -- Joey Hess <joeyh@debian.org> Mon, 20 Nov 2006 06:14:51 -0500
+ -- Joey Hess <joeyh@debian.org> Mon, 20 Nov 2006 06:54:12 -0500
ikiwiki (1.33) unstable; urgency=low
diff --git a/ikiwiki.pl b/ikiwiki.pl
index 60ba5e182..ff1da353e 100755
--- a/ikiwiki.pl
+++ b/ikiwiki.pl
@@ -102,7 +102,6 @@ sub main () { #{{{
getconfig();
if ($config{cgi}) {
- lockwiki();
loadindex();
require IkiWiki::CGI;
cgi();
dth: -nan%;'/> -rw-r--r--tags/a7/10/20180901130209.81E111CCCAD@lxp5.free-owl.de/sys0
-rw-r--r--tags/a7/10/20180901130209.81E111CCCAD@lxp5.free-owl.de/unread0
-rw-r--r--tags/a7/10/20190810030002.1711A1CD533@lxp5.free-owl.de/sys0
-rw-r--r--tags/a7/10/20190810030002.1711A1CD533@lxp5.free-owl.de/unread0
-rw-r--r--tags/a7/10/5913b823dd5b5_1cbe138bffc3839@bma2-green.intapp.bytemark.int.bigv.io.tmail/attachment0
-rw-r--r--tags/a7/10/5913b823dd5b5_1cbe138bffc3839@bma2-green.intapp.bytemark.int.bigv.io.tmail/inbox0
-rw-r--r--tags/a7/10/5913b823dd5b5_1cbe138bffc3839@bma2-green.intapp.bytemark.int.bigv.io.tmail/old0
-rw-r--r--tags/a7/10/CADRcC2O-NY3w4pNeyvfK_0uuMOpOFjZ8r=vTzfiJYgJ-MmGxug@mail.gmail.com/debian0
-rw-r--r--tags/a7/10/CADRcC2O-NY3w4pNeyvfK_0uuMOpOFjZ8r=vTzfiJYgJ-MmGxug@mail.gmail.com/unread0
-rw-r--r--tags/a7/10/CAHdAatYhVSho_hnTYHWrvn-_L3+SL9zNhjHEHnWv1hJRc2sKpg@mail.gmail.com/sugar0
-rw-r--r--tags/a7/10/CAHdAatYhVSho_hnTYHWrvn-_L3+SL9zNhjHEHnWv1hJRc2sKpg@mail.gmail.com/unread0
-rw-r--r--tags/a7/10/e8033443-fb57-4f37-9140-71a4f05a301b@debian.org/debian0
23 files changed, 0 insertions, 0 deletions