From: Igor Fedotov Date: Thu, 16 Jun 2016 14:25:24 +0000 (+0300) Subject: os/bluestore: fix improper blob's csum visualization. X-Git-Tag: v11.0.0~120^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b69316c647d34335fa7a25bd50a4ff219970464b;p=ceph.git os/bluestore: fix improper blob's csum visualization. Signed-off-by: Igor Fedotov --- diff --git a/src/os/bluestore/bluestore_types.h b/src/os/bluestore/bluestore_types.h index f47e8175360..fa57726c56d 100644 --- a/src/os/bluestore/bluestore_types.h +++ b/src/os/bluestore/bluestore_types.h @@ -475,11 +475,11 @@ struct bluestore_blob_t { case 0: assert(0 == "no csum data, bad index"); case 2: - return *reinterpret_cast(p); + return reinterpret_cast(p)[i]; case 4: - return *reinterpret_cast(p); + return reinterpret_cast(p)[i]; case 8: - return *reinterpret_cast(p); + return reinterpret_cast(p)[i]; default: assert(0 == "unrecognized csum word size"); }