Commit a2069296 authored by dingjy's avatar dingjy

modify

parent 281150d7
......@@ -54,8 +54,9 @@ public class BulkResult extends Result<ByteBuf> {
@Override
public void write(ByteBuf os) throws IOException {
os.writeByte(MARKER);
System.out.println("capacity: " + capacity);
os.writeBytes(numToBytes(capacity, true));
if (capacity > 0) {
if (capacity >= 0) {
os.writeBytes(bytes);
os.writeBytes(CRLF);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment