mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
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…
x
Reference in New Issue
Block a user