You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2019/06/13 15:40:17 UTC
[lucene-solr] branch branch_8x updated: LUCENE-8766: Pass BytesRef
offset/length when decoding from input stream
This is an automated email from the ASF dual-hosted git repository.
romseygeek pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new 4071703 LUCENE-8766: Pass BytesRef offset/length when decoding from input stream
4071703 is described below
commit 4071703ce2279bcfe3492469c3c5a4065d333628
Author: Alan Woodward <ro...@apache.org>
AuthorDate: Thu Jun 13 16:22:58 2019 +0100
LUCENE-8766: Pass BytesRef offset/length when decoding from input stream
---
.../src/java/org/apache/lucene/monitor/MonitorQuerySerializer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lucene/monitor/src/java/org/apache/lucene/monitor/MonitorQuerySerializer.java b/lucene/monitor/src/java/org/apache/lucene/monitor/MonitorQuerySerializer.java
index c86dfca..292a647 100644
--- a/lucene/monitor/src/java/org/apache/lucene/monitor/MonitorQuerySerializer.java
+++ b/lucene/monitor/src/java/org/apache/lucene/monitor/MonitorQuerySerializer.java
@@ -55,7 +55,7 @@ public interface MonitorQuerySerializer {
return new MonitorQuerySerializer() {
@Override
public MonitorQuery deserialize(BytesRef binaryValue) {
- ByteArrayInputStream is = new ByteArrayInputStream(binaryValue.bytes);
+ ByteArrayInputStream is = new ByteArrayInputStream(binaryValue.bytes, binaryValue.offset, binaryValue.length);
try (InputStreamDataInput data = new InputStreamDataInput(is)) {
String id = data.readString();
String query = data.readString();