Skip to content

Commit

Permalink
os/bluestore: fix improper blob's csum visualization.
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
  • Loading branch information
Igor Fedotov committed Jun 16, 2016
1 parent 456781c commit b69316c
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 @@ -475,11 +475,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 b69316c

Please sign in to comment.