From 4821dd205c7e9a559ec196fc0447075a0df612da Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 21 Jan 2008 18:29:05 +0000
Subject: [PATCH] Fix for issue 2862 (Online backup command exit status 0 while backup is failed).
---
opends/src/server/org/opends/server/tasks/BackupTask.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/opends/src/server/org/opends/server/tasks/BackupTask.java b/opends/src/server/org/opends/server/tasks/BackupTask.java
index bfdce39..ce279a5 100644
--- a/opends/src/server/org/opends/server/tasks/BackupTask.java
+++ b/opends/src/server/org/opends/server/tasks/BackupTask.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Portions Copyright 2006-2007 Sun Microsystems, Inc.
+ * Portions Copyright 2006-2008 Sun Microsystems, Inc.
*/
package org.opends.server.tasks;
import org.opends.messages.Message;
@@ -664,12 +664,13 @@
// Print a final completed message, indicating whether there were any errors
- // in the process.
+ // in the process. In this case it means that the backup could not be
+ // completed at least for one of the backends.
if (errorsEncountered)
{
Message message = NOTE_BACKUPDB_COMPLETED_WITH_ERRORS.get();
logError(message);
- return TaskState.COMPLETED_WITH_ERRORS;
+ return TaskState.STOPPED_BY_ERROR;
}
else if (isCancelled())
{
--
Gitblit v1.10.0