From 12b735204734a7a1c6196d330b9babc3a3860f33 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 25 Jan 2024 09:45:08 -0500 Subject: [PATCH] mon: zero-initialize MonCommand::flags causing failures in check-generated.sh: 2 MonCommand /tmp/typ-qmnDZ1ahR /tmp/typ-lIgJTZiUe differ: byte 100, line 6 **** MonCommand test 1 dump_json check failed **** ceph-dencoder type MonCommand select_test 1 dump_json > /tmp/typ-qmnDZ1ahR ceph-dencoder type MonCommand select_test 1 encode decode dump_json > /tmp/typ-lIgJTZiUe 6c6 < "flags": 94661933599904 --- > "flags": 94342467308704 Signed-off-by: Casey Bodley --- src/mon/MonCommand.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/MonCommand.h b/src/mon/MonCommand.h index 5caebfc6f1343..2421229c84d63 100644 --- a/src/mon/MonCommand.h +++ b/src/mon/MonCommand.h @@ -22,7 +22,7 @@ struct MonCommand { std::string helpstring; std::string module; std::string req_perms; - uint64_t flags; + uint64_t flags = 0; // MonCommand flags static const uint64_t FLAG_NONE = 0; -- 2.39.5