From 08632621d076d8873c67a542afa54fac407f1de2 Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Wed, 9 Oct 2024 08:17:16 +0000 Subject: [PATCH] crimson/os/seastore: initialize oi and ss in onode_layout_t to zero Without this commit, onode_layout_t{} generates different contents, resulting in crc mismatch Signed-off-by: Myoungwon Oh --- src/crimson/os/seastore/onode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crimson/os/seastore/onode.h b/src/crimson/os/seastore/onode.h index 072c57864bed7..fa2ed65c0f31c 100644 --- a/src/crimson/os/seastore/onode.h +++ b/src/crimson/os/seastore/onode.h @@ -36,8 +36,8 @@ struct onode_layout_t { object_data_le_t object_data; - char oi[MAX_OI_LENGTH]; - char ss[MAX_SS_LENGTH]; + char oi[MAX_OI_LENGTH] = {0}; + char ss[MAX_SS_LENGTH] = {0}; } __attribute__((packed)); class Transaction;