summaryrefslogtreecommitdiffstats
path: root/src/mon/MonCommand.h
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@redhat.com>2024-01-25 15:45:08 +0100
committerCasey Bodley <cbodley@redhat.com>2024-01-25 15:45:10 +0100
commit12b735204734a7a1c6196d330b9babc3a3860f33 (patch)
treea6a7aec0f33d161f4c081d7a9100dc9854973be8 /src/mon/MonCommand.h
parentMerge pull request #55287 from ajarr/wip-64139 (diff)
downloadceph-12b735204734a7a1c6196d330b9babc3a3860f33.tar.xz
ceph-12b735204734a7a1c6196d330b9babc3a3860f33.zip
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 <cbodley@redhat.com>
Diffstat (limited to 'src/mon/MonCommand.h')
-rw-r--r--src/mon/MonCommand.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/MonCommand.h b/src/mon/MonCommand.h
index 5caebfc6f13..2421229c84d 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;