HTRACE-112. addendum: add missing diff
diff --git a/htrace-core/src/main/java/org/apache/htrace/impl/LocalFileSpanReceiver.java b/htrace-core/src/main/java/org/apache/htrace/impl/LocalFileSpanReceiver.java
index e2ddad1..190d575 100644
--- a/htrace-core/src/main/java/org/apache/htrace/impl/LocalFileSpanReceiver.java
+++ b/htrace-core/src/main/java/org/apache/htrace/impl/LocalFileSpanReceiver.java
@@ -101,13 +101,15 @@
*/
private final int WRITEV_SIZE = 20;
+ private final static ByteBuffer newlineBuf =
+ ByteBuffer.wrap(new byte[] { (byte)0xa });
+
/**
* Flushes a bufferedSpans array.
*/
private void doFlush(byte[][] toFlush, int len) throws IOException {
int bidx = 0, widx = 0;
ByteBuffer writevBufs[] = new ByteBuffer[2 * WRITEV_SIZE];
- ByteBuffer newlineBuf = ByteBuffer.wrap(new byte[] { (byte)0xa });
while (true) {
if (widx == writevBufs.length) {