Skip to content

Commit

Permalink
Merge pull request #9750 from ifed01/wip-bluestore-csum-output-fix
Browse files Browse the repository at this point in the history
os/bluestore: fix improper blob's csum visualization.

Reviewed-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Jun 18, 2016
2 parents 636152c + b69316c commit f29473b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/os/bluestore/bluestore_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -408,11 +408,11 @@ struct bluestore_blob_t {
case 0:
assert(0 == "no csum data, bad index");
case 2:
return *reinterpret_cast<const __le16*>(p);
return reinterpret_cast<const __le16*>(p)[i];
case 4:
return *reinterpret_cast<const __le32*>(p);
return reinterpret_cast<const __le32*>(p)[i];
case 8:
return *reinterpret_cast<const __le64*>(p);
return reinterpret_cast<const __le64*>(p)[i];
default:
assert(0 == "unrecognized csum word size");
}
Expand Down

0 comments on commit f29473b

Please sign in to comment.