]> git.pond.sub.org Git - empserver/commit
edit: Detect concurrent updates during interactive nation edit
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 29 Mar 2013 17:19:40 +0000 (18:19 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 6 Jun 2013 17:55:03 +0000 (19:55 +0200)
commit0faceac07047244026c23d5e9736961a90ae98eb
tree75e5ba8a5c78c2bd52cfd901eaf80348386fd746
parent9eec1a57e7096d8df4056056f771b0a52b947564
edit: Detect concurrent updates during interactive nation edit

Unlike other edits, editing a country modifies the object in-place.
It has to, because editing may send bulletins, which updates nat_tgms,
and writing back a copy would clobber these updates, triggering a
seqno mismatch oops.

However, the in-place editing neglects to detect concurrent updates.
Fix that.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/edit.c