| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.backends.task; |
| | | |
| | |
| | | */ |
| | | public void addLogMessage(Message message) |
| | | { |
| | | // We cannot do task logging if the schema is either destroyed or |
| | | // not initialized eg during in-core restart from Restart task. |
| | | // Bailing out if there is no schema available saves us from NPE. |
| | | if (DirectoryServer.getSchema() == null) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | // We only need to grab the entry-level lock if we don't already hold the |
| | | // broader scheduler lock. |
| | | boolean needLock = (! taskScheduler.holdsSchedulerLock()); |