dbImplModified = true;
dbImpl.setNodeMaxTreeEntries(newNodeMaxEntries);
}
/* Do not write LNs in a read-only environment. Also see [#15743]. */
EnvironmentImpl envImpl = envHandle.getEnvironmentImpl();
if (dbImplModified && !envImpl.isReadOnly()) {
/* Write a new NameLN to the log. */
try {
envImpl.getDbTree().updateNameLN
(locker, dbImpl.getName(), null);
} catch (LockConflictException e) {
throw new IllegalStateException
("DatabaseConfig properties may not be updated when the " +
"database is already open; first close other open " +
"handles for this database.", e);
}
/* Dirty the root. */
envImpl.getDbTree().modifyDbRoot(dbImpl);
}
/*
* CacheMode and Strategy are changed for all handles, but are not
* persistent.