From 35af51f9683f5ef8cec66baca7b89aa1e1cbc44e Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Fri, 11 May 2007 23:27:30 +0000
Subject: [PATCH] Issue 1532: Remove ConfigEntry from Backend API. (DS-1532)
---
opends/src/server/org/opends/server/tasks/RebuildTask.java | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/opends/src/server/org/opends/server/tasks/RebuildTask.java b/opends/src/server/org/opends/server/tasks/RebuildTask.java
index 7423855b..4c9c9c7 100644
--- a/opends/src/server/org/opends/server/tasks/RebuildTask.java
+++ b/opends/src/server/org/opends/server/tasks/RebuildTask.java
@@ -45,7 +45,6 @@
import org.opends.server.core.LockFileManager;
import org.opends.server.api.ClientConnection;
import org.opends.server.api.Backend;
-import org.opends.server.config.ConfigEntry;
import static org.opends.server.core.DirectoryServer.getAttributeType;
import static org.opends.server.util.StaticUtils.*;
@@ -184,10 +183,6 @@
return TaskState.STOPPED_BY_ERROR;
}
- // Get the config entry for this backend.
- ConfigEntry configEntry = TaskUtils.getConfigEntry(backend);
- DN[] baseDNs = backend.getBaseDNs();
-
// Acquire a shared lock for the backend if we are rebuilding attribute
// indexes only. If we are rebuilding one or more system indexes, we have
// to aquire exclusive lock.
@@ -198,7 +193,7 @@
// Disable the backend.
try
{
- TaskUtils.setBackendEnabled(configEntry, false);
+ TaskUtils.disableBackend(backend.getBackendID());
}
catch (DirectoryException e)
{
@@ -265,7 +260,7 @@
try
{
BackendImpl jebBackend = (BackendImpl)backend;
- jebBackend.rebuildBackend(rebuildConfig, configEntry, baseDNs);
+ jebBackend.rebuildBackend(rebuildConfig);
}
catch (Exception e)
{
@@ -311,7 +306,7 @@
// Enable the backend.
try
{
- TaskUtils.setBackendEnabled(configEntry, true);
+ TaskUtils.enableBackend(backend.getBackendID());
}
catch (DirectoryException e)
{
--
Gitblit v1.10.0