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

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

commit a9fb4b83fc4b663b64b4e0ea9c20f3a87d3556b1
Author: Julian Reschke <[email protected]>
AuthorDate: Wed Jun 12 14:18:26 2024 +0100

    OAK-10803: use SystemPropertySupplier and make property name more specific
---
 .../jackrabbit/oak/plugins/document/DocumentPropertyState.java       | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentPropertyState.java
 
b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentPropertyState.java
index b684a69fad..e3d5633968 100644
--- 
a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentPropertyState.java
+++ 
b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentPropertyState.java
@@ -34,6 +34,7 @@ import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.Compression;
 import org.apache.jackrabbit.oak.commons.json.JsopReader;
 import org.apache.jackrabbit.oak.commons.json.JsopTokenizer;
+import org.apache.jackrabbit.oak.commons.properties.SystemPropertySupplier;
 import org.apache.jackrabbit.oak.json.TypeCodes;
 import org.apache.jackrabbit.oak.plugins.memory.AbstractPropertyState;
 import org.apache.jackrabbit.oak.plugins.memory.BinaryPropertyState;
@@ -64,7 +65,9 @@ final class DocumentPropertyState implements PropertyState {
     private final byte[] compressedValue;
     private final Compression compression;
 
-    private static final int DEFAULT_COMPRESSION_THRESHOLD = 
Integer.getInteger("oak.mongo.compressionThreshold", -1);
+    private static final int DEFAULT_COMPRESSION_THRESHOLD = 
SystemPropertySupplier
+            
.create("org.apache.jackrabbit.oak.plugins.document.DocumentPropertyState.stringCompressionThreshold",
 -1)
+            .loggingTo(LOG).get();
 
     DocumentPropertyState(DocumentNodeStore store, String name, String value) {
         this(store, name, value, Compression.GZIP);

Reply via email to