Go to the FreeLists Home Page Home Signup Help Login
 



Browse dokuwiki: This Month's Archive    Main Archive Page    Related posts

[dokuwiki] Re: 'Search' times out and does not return results

  • From: ddoyle@xxxxxxxxxxxxxxxx
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 7 Sep 2005 19:04:12 -0400

From: Andreas Gohr
Sent: Wednesday, September 07, 2005 5:11 PM

> Strange the PHP docs don't mention any Win32 problems with 
> rename... anyway I changed your patch a little. It now 
> tries to use rename and gracefully fall back to copy/unlink 
> renaming fails. Rename is much faster in Unix as it only 
> needs changing a single inode entry instead of duplicating 
> the whole content.  Can you try if it still works for you?

Yup.  Seems to work great with your patch.  Sorry, never
occurred to me to do the fallback approach.

Not sure why rename() doesn't seem to work.  This is what it was
doing before the patch in my Apache error log:

[client 127.0.0.1] [PHP WARNING]
rename(D:\\WEBSITE\\htdocs\\dokuwiki\\data\\cache/index.tmp,D:\\WEBSITE\\htd
ocs\\dokuwiki\\data\\cache/index.idx) [<a
href='function.rename'>function.rename</a>]: File exists in
D:\\WEBSITE\\htdocs\\dokuwiki\\inc\\indexer.php on line 152, referer:
http://ddoyle/dokuwiki/doku.php?id=start

I guess rename() is implemented a bit differently on Win32.

Thanks,
Dave

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts:

  • [dokuwiki] 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results
  • [dokuwiki] Re: 'Search' times out and does not return results




  • [ Home | Signup | Help | Login | Archives | Lists ]

    All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
    Everything else ©2007 Avenir Technologies, LLC.