| | |
| | | import org.opends.server.api.MonitorProvider; |
| | | import org.opends.server.backends.RebuildConfig; |
| | | import org.opends.server.backends.VerifyConfig; |
| | | import org.opends.server.backends.pluggable.ImportSuffixCommand.SuffixImportStrategy; |
| | | import org.opends.server.backends.pluggable.spi.Storage; |
| | | import org.opends.server.backends.pluggable.spi.Storage.AccessMode; |
| | | import org.opends.server.backends.pluggable.spi.StorageInUseException; |
| | |
| | | { |
| | | throw new DirectoryException(getServerErrorResultCode(), ERR_IMPORT_BACKEND_ONLINE.get()); |
| | | } |
| | | if (importIncludesOrExcludesBranches(cfg.getBaseDN(), importConfig.getIncludeBranches(), |
| | | importConfig.getExcludeBranches())) |
| | | for (DN dn : cfg.getBaseDN()) |
| | | { |
| | | // fail-fast to avoid ending up in an unrecoverable state for the server |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, ERR_IMPORT_UNSUPPORTED_WITH_BRANCH.get()); |
| | | ImportSuffixCommand openMethod = new ImportSuffixCommand(dn, importConfig); |
| | | if (openMethod.getSuffixImportStrategy() == SuffixImportStrategy.MERGE_DB_WITH_LDIF) |
| | | { |
| | | // fail-fast to avoid ending up in an unrecoverable state for the server |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, ERR_IMPORT_UNSUPPORTED_WITH_BRANCH.get()); |
| | | } |
| | | } |
| | | |
| | | try |