void readTxCache ( TransactionCache transactionCache ) { //Check if the schema has been changed and should be flushed into this cache if ( ! cachedLabels . equals ( transactionCache . getLabelCache ( ) ) ) { try { lock . writeLock ( ) . lock ( ) ; cachedLabels . clear ( ) ; cachedLabels . putAll ( transactionCache . getLabelCache ( ) ) ; } finally { lock . writeLock ( ) . unlock ( ) ; } } }
Reads the SchemaConcept labels currently in the transaction cache into the keyspace cache . This happens when a commit occurs and allows us to track schema mutations without having to read the graph .