/** * Some data-structures like the Transaction List rely on (empty) backup logs to be created before any change on the * data-structure is made. That is why when such a data-structure is loaded, it should the creation. * <p> * Not every data-structure, e.g. the Transactional Map, relies on it and in some cases can even skip it. */ public void ensureBackupLogsExist() { // we can't take the TransactionLog size in consideration because this call can be made before an item // is added to the transactionLog. if (backupLogsCreated || backupAddresses.length == 0) { return; } forceCreateBackupLogs(); }
/** * Some data-structures like the Transaction List rely on (empty) backup logs to be created before any change on the * data-structure is made. That is why when such a data-structure is loaded, it should the creation. * <p> * Not every data-structure, e.g. the Transactional Map, relies on it and in some cases can even skip it. */ public void ensureBackupLogsExist() { // we can't take the TransactionLog size in consideration because this call can be made before an item // is added to the transactionLog. if (backupLogsCreated || backupAddresses.length == 0) { return; } forceCreateBackupLogs(); }
private void createBackupLogs() { if (backupLogsCreated || skipBackupLogReplication()) { return; } forceCreateBackupLogs(); }
private void createBackupLogs() { if (backupLogsCreated || skipBackupLogReplication()) { return; } forceCreateBackupLogs(); }