Skip to content

Commit

Permalink
mark source as "safe" when copying it over
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed Feb 22, 2013
1 parent a234e45 commit 6978aa2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ public BytesReference getSource() {
public BytesReference getSafeSource() {
if (sourceUnsafe) {
source = source.copyBytesArray();
sourceUnsafe = false;
}
return source;
}
Expand Down

0 comments on commit 6978aa2

Please sign in to comment.