Discard transaction data
This commit is contained in:
parent
1f04241ac6
commit
fb43fa78af
@ -148,6 +148,7 @@ public final class OptimisticRocksDBColumn extends AbstractRocksDBColumn<Optimis
|
|||||||
sentCurData = newData == null ? null : newData.send();
|
sentCurData = newData == null ? null : newData.send();
|
||||||
if (!committedSuccessfully) {
|
if (!committedSuccessfully) {
|
||||||
tx.undoGetForUpdate(cfh, keyArray);
|
tx.undoGetForUpdate(cfh, keyArray);
|
||||||
|
tx.rollback();
|
||||||
if (sentPrevData != null) {
|
if (sentPrevData != null) {
|
||||||
sentPrevData.close();
|
sentPrevData.close();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user