/* To prevent DB open, get a write-lock on the MapLN. */
EnvironmentImpl envImpl = databaseImpl.getDbEnvironment();
BasicLocker locker = BasicLocker.createBasicLocker(envImpl);
DatabaseImpl idDatabaseImpl = envImpl.getDbTree().getIdDatabaseImpl();
try {
LockResult lockResult = locker.nonBlockingLock
(lsn, LockType.WRITE, false /*jumpAheadOfWaiters*/,
idDatabaseImpl);
/*
* The isEvictableInexact result is guaranteed to hold true during
* LN stripping if it is still true after acquiring the write-lock.
*/
if (lockResult.getLockGrant() != LockGrantType.DENIED &&
isEvictableInexact()) {
/*
* While holding both a write-lock on the MapLN, we are
* guaranteed that the DB is not currently open. It cannot be