Skip to content

Commit

Permalink
Merge pull request ceph#9454 from tanghaodong25/bluestore-write-path
Browse files Browse the repository at this point in the history
os/bluestore: no 'head_read' when check ondisk length.

Reviewed-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Jun 2, 2016
2 parents f92e8d0 + 6f4f28b commit b55b6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/bluestore/BlueStore.cc
Expand Up @@ -5564,7 +5564,7 @@ void BlueStore::_do_write_small(
uint64_t tail_read =
ROUND_UP_TO(b_off + b_len, chunk_size) - (b_off + b_len);
if ((head_read || tail_read) &&
b->get_ondisk_length() >= b_off + b_len + head_read + tail_read) {
(b->get_ondisk_length() >= b_off + b_len + tail_read)) {
dout(20) << __func__ << " reading head 0x" << std::hex << head_read
<< " and tail 0x" << tail_read << std::dec << dendl;
if (head_read) {
Expand Down

0 comments on commit b55b6fb

Please sign in to comment.