talking on irc is easier join us on chat.freenode.net channel: #moin
cheers Reimar Thomas Arthur Oehser schrieb: >> Hmmm... >> >> So, the flow in my utility should be: >> >> 1) Detect what the latest revision is, say, 23 >> 1) Read that latest revsion, (say, 23) >> 2) Process it to generate desired revision, say, 24, in /tmp >> 3) Try to mv the entry from /tmp to the data pages directory >> 4) If that fails, then someone else updated it, try again from (1) >> >> Good? > > Actually, I'll need to update FooBar/current and FooBar/edit-log > and data/edit-log and data/event-log too, in addition to the > FooBar/revisions/00000006 file... > > I'm definitely uncertain as to how to do this atomically such that > there is no possible conflict with the online wikiwiki instance. > > Presumably, the consequences for messing up the logs would be far > less than if "current" and/or "00000006" file were updated wrongly. > > So, maybe, > > 1) Detect what the latest revision is, say, 23 > 2) Read that latest revsion, (say, 23) > 3) Process it to generate desired revision, say, 24, in /tmp > 4) mv the entry from tmp to revisions _and_ update current > 5) If that fails, then someone else updated it, try again from (1) > 6) Append to the 2 edit-log files and update the event-log > > My concern is how to do (4) atomically. > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user