This is an automated email from the ASF dual-hosted git repository.

thomasm pushed a commit to branch OAK-9780
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit 1d3287cad1feb3b93516222dbe5386e440aa64a8
Author: Rishabh Kumar <d...@adobe.com>
AuthorDate: Tue May 17 12:21:48 2022 +0530

    OAK-9757 : fixed mongo util errors
---
 .../org/apache/jackrabbit/oak/plugins/document/mongo/MongoUtils.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoUtils.java
 
b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoUtils.java
index 48a09b9d8c..7384db08d0 100644
--- 
a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoUtils.java
+++ 
b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoUtils.java
@@ -20,7 +20,6 @@ import java.util.Arrays;
 import java.util.Set;
 import java.util.stream.Collectors;
 
-import com.google.common.collect.Lists;
 import com.google.common.collect.Sets;
 import com.mongodb.BasicDBObject;
 import com.mongodb.MongoCommandException;
@@ -37,8 +36,8 @@ import com.mongodb.client.model.IndexOptions;
 import com.mongodb.connection.ServerVersion;
 import com.mongodb.internal.connection.MongoWriteConcernWithResponseException;
 
-import org.apache.jackrabbit.oak.plugins.document.DocumentStore;
 import org.apache.jackrabbit.oak.plugins.document.DocumentStoreException.Type;
+import org.apache.jackrabbit.oak.plugins.document.util.Utils;
 import org.bson.Document;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
@@ -204,6 +203,6 @@ class MongoUtils {
      */
     static int getNodeNameLimit(final String version) {
         final ServerVersion sv = new 
ServerVersion(Arrays.stream(version.split("\\.")).map(Integer::new).collect(Collectors.toList()));
-        return sv.compareTo(new ServerVersion(4,0)) > 0 ? Integer.MAX_VALUE : 
DocumentStore.NODE_NAME_LIMIT;
+        return sv.compareTo(new ServerVersion(4,0)) > 0 ? Integer.MAX_VALUE : 
Utils.NODE_NAME_LIMIT;
     }
 }

Reply via email to