Fix bug in PreCommit_CheckForSerializationFailure. A transaction that has

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 390c52131b7a42d7b5528d0435d7f6279bdf0ed0
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2011-06-21T12:02:32Z
Releases: 9.1.0
Fix bug in PreCommit_CheckForSerializationFailure. A transaction that has
already been marked as PREPARED cannot be killed. Kill the current
transaction instead.

One of the prepared_xacts regression tests actually hits this bug. I
removed the anomaly from the duplicate-gids test so that it fails in the
intended way, and added a new test to check serialization failures with
a prepared transaction.

Dan Ports

Files