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.bat |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/opends/resource/bin/dsreplication.bat b/opends/resource/bin/dsreplication.bat
index 88e5398..1c4aa4e 100644
--- a/opends/resource/bin/dsreplication.bat
+++ b/opends/resource/bin/dsreplication.bat
@@ -23,10 +23,23 @@
 rem CDDL HEADER END
 rem
 rem
-rem      Copyright 2008 Sun Microsystems, Inc.
+rem      Copyright 2008-2010 Sun Microsystems, Inc.
 
 setlocal
 
 set OPENDS_INVOKE_CLASS="org.opends.server.tools.dsreplication.ReplicationCliMain"
+if "%RECURSIVE_LOCAL_CALL%" == "true" goto callOffline
+goto callOnline
+
+:callOffline
+set SCRIPT_ARGS=
+set SCRIPT_NAME=dsreplication.offline
+goto callScript
+
+:callOnline
+set SCRIPT_ARGS=-Dorg.opends.server.dsreplicationcallstatus=firstcall
 set SCRIPT_NAME=dsreplication
-for %%i in (%~sf0) do call "%%~dPsi\..\lib\_client-script.bat" %*
+goto callScript
+
+:callScript
+for %%i in (%~sf0) do call "%%~dPsi\..\lib\_server-script.bat" %*

--
Gitblit v1.10.0