https://bugzilla.wikimedia.org/show_bug.cgi?id=53446

--- Comment #3 from C. Scott Ananian <[email protected]> ---
On the page linked in comment 2, Wikid77 says, "Overwrite of 1-minute edits has
been problem for months or years: Several other users have noted similar
problems, sometimes imagining the next editor has deliberately deleted their
recent comment, where the prior edit was auto-erased when saving the next edit,
within 1 minute after the prior edit. I think it is the "age-old" problem of
needing to read-lock the database entry (the page) so that, before an edit can
be saved, all other pending edits must wait to only re-read the page after the
prior edit has been saved (only 1 session could read the prior revision at a
time during the SAVE), then do a diff against the latest read-locked page and
auto-merge with the latest prior save, as to not auto-merge by both edits
reading the same version of 2 revisions prior as being the revision to merge.
Again, unless each SAVE does an exclusive (rapid) read+write lock of the page,
then 2 quick edits of a page will both try to merge changes into the same old
revision, rather than sequentially readlocking to update once (then unlock), so
the 2nd edit is forced to read only after the first edit is saved, to ensure
updating the next latest revision in sequence, not merge with 2 revisions back.
Note that the exclusive read+write lock would only apply to delay edit-save
transactions, and article viewing would not be delayed by the read-lock option.
The typical test-and-set logic is needed to control a semaphore to ensure how 2
edits within 1 minute must sequentially wait to read the results of the prior
edit-save, before merging new changes, as a 3rd revision applied to the 2nd
revision."

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to