From 6b3ef14a652f6be0d559365d2fd2c78a61524fec Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 17 Sep 2010 22:06:25 +0000
Subject: [PATCH] Minimize Historical Data (dsreplication/client side). The purge historical can be executed on the local server even when it is stopped. This is matches the functionality provided by utilities such import-ldif, backup, etc.
---
opends/resource/bin/dsreplication | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/opends/resource/bin/dsreplication b/opends/resource/bin/dsreplication
index e785f31..14f65b6 100644
--- a/opends/resource/bin/dsreplication
+++ b/opends/resource/bin/dsreplication
@@ -23,16 +23,27 @@
# CDDL HEADER END
#
#
-# Copyright 2008 Sun Microsystems, Inc.
+# Copyright 2008-2010 Sun Microsystems, Inc.
# This script may be used to perform some replication specific operations.
OPENDS_INVOKE_CLASS="org.opends.server.tools.dsreplication.ReplicationCliMain"
export OPENDS_INVOKE_CLASS
-SCRIPT_NAME="dsreplication"
-export SCRIPT_NAME
-
SCRIPT_DIR=`dirname "${0}"`
-"${SCRIPT_DIR}/../lib/_client-script.sh" "${@}"
+
+if test "${RECURSIVE_LOCAL_CALL}" = "true"
+then
+ SCRIPT_ARGS=""
+ export SCRIPT_ARGS
+ SCRIPT_NAME="dsreplication.offline"
+ export SCRIPT_NAME
+else
+ SCRIPT_ARGS="-Dorg.opends.server.dsreplicationcallstatus=firstcall"
+ export SCRIPT_ARGS
+ SCRIPT_NAME="dsreplication"
+ export SCRIPT_NAME
+fi
+"${SCRIPT_DIR}/../lib/_server-script.sh" "${@}"
+
--
Gitblit v1.10.0