You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2018/09/15 05:05:25 UTC
lucene-solr:jira/http2: Set using str_cache as default
Repository: lucene-solr
Updated Branches:
refs/heads/jira/http2 36b99198f -> 67ace8b55
Set using str_cache as default
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/67ace8b5
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/67ace8b5
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/67ace8b5
Branch: refs/heads/jira/http2
Commit: 67ace8b5582f83d28798ede87c26fc0b3d52617f
Parents: 36b9919
Author: Cao Manh Dat <da...@apache.org>
Authored: Sat Sep 15 12:05:17 2018 +0700
Committer: Cao Manh Dat <da...@apache.org>
Committed: Sat Sep 15 12:05:17 2018 +0700
----------------------------------------------------------------------
.../solr/client/solrj/impl/BinaryResponseParser.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/67ace8b5/solr/solrj/src/java/org/apache/solr/client/solrj/impl/BinaryResponseParser.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/BinaryResponseParser.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/BinaryResponseParser.java
index 8760a59..5f099e4 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/BinaryResponseParser.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/BinaryResponseParser.java
@@ -70,10 +70,10 @@ public class BinaryResponseParser extends ResponseParser {
throw new RuntimeException("Cannot handle character stream");
}
- private static JavaBinCodec.StringCache STR_CACHE = null;
- {
- if ("true".equals(System.getProperty("cache.str"))) {
- STR_CACHE = new JavaBinCodec.StringCache(new ConcurrentLFUCache(12000, 8000, 6000, 6000, false, true, null, true));
- }
- }
+ private static JavaBinCodec.StringCache STR_CACHE = new JavaBinCodec.StringCache(new ConcurrentLFUCache(12000, 8000, 6000, 6000, false, true, null, true));
+// {
+// if ("true".equals(System.getProperty("cache.str"))) {
+// STR_CACHE = new JavaBinCodec.StringCache(new ConcurrentLFUCache(12000, 8000, 6000, 6000, false, true, null, true));
+// }
+// }
}