]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: initialize oi and ss in onode_layout_t to zero 60209/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Wed, 9 Oct 2024 08:17:16 +0000 (08:17 +0000)
committermyoungwon oh <ohmyoungwon@gmail.com>
Wed, 9 Oct 2024 08:38:57 +0000 (08:38 +0000)
Without this commit, onode_layout_t{} generates different contents,
resulting in crc mismatch

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/crimson/os/seastore/onode.h

index 072c57864bed74f64a9e4cbf8343374c855c18ea..fa2ed65c0f31c436b73dfe7ce2d6e8806a3e075c 100644 (file)
@@ -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;