protected int updateRecord(final int iTxId, final OCluster iClusterSegment, final ORecordId iRid, final byte[] iContent,
final int iVersion, final byte iRecordType) {
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