On Fri, Apr 4, 2008 at 3:49 PM, catrope@svn.wikimedia.org wrote:
Revision: 32782 Author: catrope Date: 2008-04-04 13:49:56 +0000 (Fri, 04 Apr 2008)
Log Message:
Actually, let's have that commit() call there anyway, the way it currently works relies on the fact that internalAttemptSave() schedules deferred updates, which may change.
I think we should implement our own update mechanism for the API. ApiMain::requestWriteMode() should call $dbw->begin() and $bdw->commit() should be called by some finalizer method.
Bryan
Bryan Tong Minh schreef:
I think we should implement our own update mechanism for the API. ApiMain::requestWriteMode() should call $dbw->begin() and $bdw->commit() should be called by some finalizer method.
Yeah, that's probably best. I'll do that (may have to wait until Sunday or Monday).
Roan Kattouw (Catrope)
Roan Kattouw schreef:
Bryan Tong Minh schreef:
I think we should implement our own update mechanism for the API. ApiMain::requestWriteMode() should call $dbw->begin() and $bdw->commit() should be called by some finalizer method.
Yeah, that's probably best. I'll do that (may have to wait until Sunday or Monday).
Added ApiMain::scheduleCommit() in r33133.
Roan Kattouw (Catrope)
wikitech-l@lists.wikimedia.org