/*
* If we can't get an exclusive lock, then there are other processes
* with the environment open read-only and we can't delete any files.
*/
final FileManager fileManager = env.getFileManager();
if (!fileManager.lockEnvironment(false, true)) {
LoggerUtils.traceAndLog(logger, env, Level.WARNING,
"Cleaner has " + safeToDeleteFiles.size() +
" files not deleted because of read-only" +
" processes.");
return;