use of org.neo4j.kernel.impl.api.TransactionToApply in project neo4j by neo4j.
the class NeoStoresTest method commitTx.
private void commitTx() throws Exception {
try (CommandCreationContext commandCreationContext = storageEngine.newCommandCreationContext(INSTANCE)) {
CursorContext cursorContext = NULL;
commandCreationContext.initialize(cursorContext);
List<StorageCommand> commands = new ArrayList<>();
storageEngine.createCommands(commands, transactionState, storageReader, commandCreationContext, IGNORE, NONE, storageEngine.testAccessNeoStores().getMetaDataStore().getLastClosedTransactionId(), tx -> tx, cursorContext, INSTANCE);
PhysicalTransactionRepresentation tx = new PhysicalTransactionRepresentation(commands);
tx.setHeader(EMPTY_BYTE_ARRAY, -1, -1, -1, -1, AUTH_DISABLED);
storageEngine.apply(new TransactionToApply(tx, cursorContext), INTERNAL);
}
}
Aggregations