From bed9ba6f9dcea95f7df2a3e76669d10e9c9c18e6 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 26 Nov 2015 17:00:23 +0000
Subject: [PATCH] OPENDJ-2480 Upgrade fails while migrating JE backend
---
opendj-legacy/src/main/java/org/opends/server/backends/jeb/VLVKeyComparator.java | 42 +++++++++++++++++++++
opendj-legacy/src/main/java/org/opends/server/backends/jeb/AttributeIndex.java | 50 +++++++++++++++++++++++++
2 files changed, 92 insertions(+), 0 deletions(-)
diff --git a/opendj-legacy/src/main/java/org/opends/server/backends/jeb/AttributeIndex.java b/opendj-legacy/src/main/java/org/opends/server/backends/jeb/AttributeIndex.java
new file mode 100644
index 0000000..a7a4082
--- /dev/null
+++ b/opendj-legacy/src/main/java/org/opends/server/backends/jeb/AttributeIndex.java
@@ -0,0 +1,50 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License, Version 1.0 only
+ * (the "License"). You may not use this file except in compliance
+ * with the License.
+ *
+ * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
+ * or http://forgerock.org/license/CDDLv1.0.html.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at legal-notices/CDDLv1_0.txt.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information:
+ * Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ *
+ *
+ * Copyright 2015 ForgeRock AS
+ */
+package org.opends.server.backends.jeb;
+
+import org.opends.legacy.DummyByteArrayComparator;
+
+/**
+ * Required by rebuild-index process when upgrading to OpenDJ3.
+ *
+ * @deprecated since OPENDJ-2337 Remove old JE local-db backend code and JE changelog
+ */
+@Deprecated
+public class AttributeIndex {
+ /**
+ * Required by rebuild-index process when upgrading to OpenDJ3.
+ *
+ * @deprecated since OPENDJ-1591 Migrate matching rules
+ * @deprecated since OPENDJ-2337 Remove old JE local-db backend code and JE changelog
+ */
+ @Deprecated
+ public static class KeyComparator extends DummyByteArrayComparator {
+ @Override
+ public int compare(byte[] a, byte[] b) {
+ return 0;
+ }
+ }
+}
diff --git a/opendj-legacy/src/main/java/org/opends/server/backends/jeb/VLVKeyComparator.java b/opendj-legacy/src/main/java/org/opends/server/backends/jeb/VLVKeyComparator.java
new file mode 100644
index 0000000..5cb4c19
--- /dev/null
+++ b/opendj-legacy/src/main/java/org/opends/server/backends/jeb/VLVKeyComparator.java
@@ -0,0 +1,42 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License, Version 1.0 only
+ * (the "License"). You may not use this file except in compliance
+ * with the License.
+ *
+ * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
+ * or http://forgerock.org/license/CDDLv1.0.html.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at legal-notices/CDDLv1_0.txt.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information:
+ * Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ *
+ *
+ * Copyright 2015 ForgeRock AS
+ */
+package org.opends.server.backends.jeb;
+
+import org.opends.legacy.DummyByteArrayComparator;
+
+/**
+ * Required by rebuild-index process when upgrading to OpenDJ3.
+ *
+ * @deprecated since OPENDJ-1591 Migrate matching rules
+ * @deprecated since OPENDJ-2337 Remove old JE local-db backend code and JE changelog
+ */
+@Deprecated
+public class VLVKeyComparator extends DummyByteArrayComparator {
+ @Override
+ public int compare(byte[] b1, byte[] b2) {
+ return 0;
+ }
+}
--
Gitblit v1.10.0