Skip to content

Commit 0863262

Browse files
committed
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 <[email protected]>
1 parent d7c144c commit 0863262

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crimson/os/seastore/onode.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ struct onode_layout_t {
3636

3737
object_data_le_t object_data;
3838

39-
char oi[MAX_OI_LENGTH];
40-
char ss[MAX_SS_LENGTH];
39+
char oi[MAX_OI_LENGTH] = {0};
40+
char ss[MAX_SS_LENGTH] = {0};
4141
} __attribute__((packed));
4242

4343
class Transaction;

0 commit comments

Comments
 (0)