void () { if (IndexDebugProperties.IS_UNIT_TEST_MODE && LOG.isTraceEnabled()) { dumpKeysOnCorruption(); } getWriteLock().lock(); try { if (!myCorrupted) { myCorrupted = true; if (LOG.isDebugEnabled()) LOG.debug("Marking corrupted:" + myFile, new Throwable()); try { markDirty(true); force(); } catch (IOException e) { // ignore... } } } finally { getWriteLock().unlock(); } }