Skip to content

Commit

Permalink
Merge pull request #12247 from YankunLi/fix_bf_append_parameter
Browse files Browse the repository at this point in the history
bufferlist: cleanup semantical wrong for bufferlist::append

Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Jan 16, 2017
2 parents 2ea4b94 + 8e1066e commit d644f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,7 @@ static simple_spinlock_t buffer_debug_lock = SIMPLE_SPINLOCK_INITIALIZER;
if (gap > len) gap = len;
//cout << "append first char is " << data[0] << ", last char is " << data[len-1] << std::endl;
append_buffer.append(data, gap);
append(append_buffer, append_buffer.end() - gap, gap); // add segment to the list
append(append_buffer, append_buffer.length() - gap, gap); // add segment to the list
len -= gap;
data += gap;
}
Expand Down

0 comments on commit d644f91

Please sign in to comment.