fix: minor revert of immutable schema usage in distributed cluster assengations
@@ -50,7 +50,6 @@ import com.orientechnologies.orient.core.query.live.OLiveQueryHookV2;
import com.orientechnologies.orient.core.record.ORecord;
import com.orientechnologies.orient.core.record.ORecordInternal;
import com.orientechnologies.orient.core.record.impl.ODocument;
-import com.orientechnologies.orient.core.record.impl.ODocumentInternal;
import com.orientechnologies.orient.core.sql.executor.OExecutionPlan;
import com.orientechnologies.orient.core.sql.executor.OResultSet;
import com.orientechnologies.orient.core.storage.ORecordDuplicatedException;
@@ -361,7 +360,7 @@ public class ODatabaseDocumentDistributed extends ODatabaseDocumentEmbedded {
"Cannot save (5) document " + record + ": no class or cluster defined");
}
} else if (record instanceof ODocument) {
- schemaClass = ODocumentInternal.getImmutableSchemaClass(((ODocument) record));
+ schemaClass = ((ODocument) record).getSchemaClass();
}
// If the cluster id was set check is validity
if (rid.getClusterId() > ORID.CLUSTER_ID_INVALID) {
