try {
// READ CURRENT RECORD CONTENT
final ORawBuffer buffer = storage.readRecord(iClusterSegment, iRid, true);
if (buffer == null)
throw new OTransactionException("Can't retrieve the updated record #" + iRid);
// MVCC TRANSACTION: CHECK IF VERSION IS THE SAME
if (iVersion > -1 && buffer.version != iVersion)
throw new OConcurrentModificationException(
"Can't update the record "