Skip to content

Commit

Permalink
Enable bulk writes in the HttpBlobStore
Browse files Browse the repository at this point in the history
This was a performance regression in bazelbuild@deccc48.

Fixed bazelbuild#4944.

PiperOrigin-RevId: 191109352
  • Loading branch information
ulfjack authored and Copybara-Service committed Mar 30, 2018
1 parent 1e29f2d commit 0654620
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ private boolean get(String key, OutputStream out, boolean casDownload)
OutputStream wrappedOut =
new FilterOutputStream(out) {

@Override
public void write(byte[] b, int offset, int length) throws IOException {
dataWritten.set(true);
super.write(b, offset, length);
}

@Override
public void write(int b) throws IOException {
dataWritten.set(true);
Expand Down

0 comments on commit 0654620

Please sign in to comment.