/** * Call this when the cache is closed or region is destroyed. Deletes the lock files. */ public void close() { if (this.closed) { return; } if (logger.isDebugEnabled()) { logger.debug("Oplog::close: Store name ={} Oplog ID = {}", parent.getName(), oplogId); } basicClose(false); }
public void destroyCrfOnly() { lockCompactor(); try { if (!this.closed) { this.basicClose(true /* force delete */); } else { // do the following even if we were already closed deleteFiles(true); } } finally { unlockCompactor(); } }
/** * Destroys this oplog. First it will call close which will cleanly close all Async threads and * then the oplog file will be deleted. The deletion of lock files will be taken care of by the * close. * */ public void destroy() { lockCompactor(); try { if (!this.closed) { this.basicClose(true /* force delete */); } else { // do the following even if we were already closed deleteFiles(false); } } finally { unlockCompactor(); } }