From e0dcbe0d17e7fccc9741dd4bdb1252c2c885aad8 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Mon, 04 May 2009 12:46:36 +0000
Subject: [PATCH]  Fix for issue #3965 (revert should not be supported from 2.0 to a previous version)

---
 opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java b/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java
index 7e97d15..89d36d0 100644
--- a/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java
+++ b/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java
@@ -218,6 +218,17 @@
    */
   public enum Cause {
     /**
+     * We not support the revert to the previous version.
+     */
+    REVERT_NOT_SUPPORTED_1(
+        9, // Unique ID.  See javadoc for more information.
+        INFO_5278_REVERSION.get(),
+        INFO_5278_REVERSION.get(),
+        Effect.REVERSION_NOT_POSSIBLE,
+        Effect.UPGRADE_SHOW_INFO_MESSAGE),
+
+
+    /**
      * Incompatible changes in attribute value normalization. This causes
      * indexes to be invalidated.
      */
@@ -470,6 +481,7 @@
   //***************************************************
 
   static {
+    register (Cause.REVERT_NOT_SUPPORTED_1, new BuildVersion(2,0,0,5278));
     register(Cause.STRINGPREP_NORMALIZATION_CHANGE_1,
             new BuildVersion(1,2,0,5134));
     register(Cause.DN_NORMALIZATION_CHANGE_1, new BuildVersion(1, 0, 0, 3873));

--
Gitblit v1.10.0