[Bug 11654] Use database instead of filesystem for updateSearchIndex.php position record

2009-04-29 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=11654





--- Comment #7 from jida...@jidanni.org  2009-04-30 01:14:42 UTC ---
Created an attachment (id=6071)
 -- (https://bugzilla.wikimedia.org/attachment.cgi?id=6071)
use wfWikiID()

Any program that changes the filesystem must consider that it is not
alone.

In the following patch, we apply the lessons learned from
maintenance/generateSitemap.php .

Any less would spell disaster for
http://www.mediawiki.org/wiki/Manual:Wiki_family users.

As far as shared hosting situations that offer a mediawiki package
where there is actually only one copy for everybody, there still is
the worry that two users wfWikiID()'s might collide, but that is the
host's fault, not ours.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 11654] Use database instead of filesystem for updateSearchIndex.php position record

2009-04-22 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=11654


^demon innocentkil...@gmail.com changed:

   What|Removed |Added

 CC||innocentkil...@gmail.com
 Status|NEW |RESOLVED
 Resolution||INVALID




--- Comment #6 from ^demon innocentkil...@gmail.com  2009-04-23 00:46:59 UTC 
---
Marking as INVALID.

 Why?
 1. Of the thousands of operations on a running Mediawiki wiki, this is
 the only one that writes into the local filesystem instead of the
 database.


Because it's faster than using the database, and it's no big deal.

 What's wrong with that?
 1. It precludes using a read only filesystem. If it were not for this
 one little 14 byte file, one could use a read only filesystem.
 

If you're really trying to set this up rather than just spouting hypothetical
situations, then perhaps I can see the issue. Otherwise we'll end up debating
all day over an edge case no one actually has.

 2. One might have several wikis using the same files:
 radioscanningtw.jidanni.org - mediawiki-1.11.0
 taizhongbus.jidanni.org - mediawiki-1.11.0
 (yes, even the same LocalSettings.php, with appropriate switch()s
 inside it.) There is no way two wikis can use the same
 searchUpdate.pos.

You can specify a different position file if you absolutely must, see the docs
in the header of updateSearchIndex.php


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l