mark source as "safe" when copying it over
This commit is contained in:
parent
a234e45b59
commit
6978aa2189
|
@ -308,6 +308,7 @@ public class IndexRequest extends ShardReplicationOperationRequest<IndexRequest>
|
||||||
public BytesReference getSafeSource() {
|
public BytesReference getSafeSource() {
|
||||||
if (sourceUnsafe) {
|
if (sourceUnsafe) {
|
||||||
source = source.copyBytesArray();
|
source = source.copyBytesArray();
|
||||||
|
sourceUnsafe = false;
|
||||||
}
|
}
|
||||||
return source;
|
return source;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue