Skip to content

Commit 6978aa2

Browse files
committed
mark source as "safe" when copying it over
1 parent a234e45 commit 6978aa2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/elasticsearch/action/index/IndexRequest.java

+1
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ public BytesReference getSource() {
308308
public BytesReference getSafeSource() {
309309
if (sourceUnsafe) {
310310
source = source.copyBytesArray();
311+
sourceUnsafe = false;
311312
}
312313
return source;
313314
}

0 commit comments

Comments
 (0)