From: joey Date: Wed, 10 Oct 2007 18:40:54 +0000 (+0000) Subject: * In the cgi edit path, reload the index file before rendering. A bug X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/278b16c79ad98514e19dd3301e771516499f7a24?hp=278b16c79ad98514e19dd3301e771516499f7a24 * In the cgi edit path, reload the index file before rendering. A bug showed up where a web edit that added a page caused a near-concurrent web edit to fail in will_render. While it would be hard to reproduce this, my analysis is that the failing cgi started first, loaded the index file (prior to locking) then the other cgi created the new page and rendered it, and then the failing cgi choked on the new file when _it_ tried to render it. Ensuring that the index file is loaded after taking the lock will avoid this bug. ---