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() {
|
||||
if (sourceUnsafe) {
|
||||
source = source.copyBytesArray();
|
||||
sourceUnsafe = false;
|
||||
}
|
||||
return source;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue