fix the required record size for the new high level change in wal record
package com.orientechnologies.orient.core.storage.impl.local.paginated.wal;
+import com.orientechnologies.common.serialization.types.OIntegerSerializer;
+import com.orientechnologies.orient.core.sql.parser.OInteger;
+
import java.nio.ByteBuffer;
import static com.orientechnologies.orient.core.storage.impl.local.paginated.wal.WALRecordTypes.HIGH_LEVEL_TRANSACTION_CHANGE_RECORD;
@@ -29,6 +32,11 @@ public class OHighLevelTransactionChangeRecord extends OOperationUnitRecord {
buffer.get(data, 0, size);
}
+ @Override
+ public int serializedSize() {
+ return super.serializedSize() + OIntegerSerializer.INT_SIZE + data.length;
+ }
+
@Override
public boolean isUpdateMasterRecord() {
return false;
