]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: zero-initialize MonCommand::flags 55315/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 25 Jan 2024 14:45:08 +0000 (09:45 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 25 Jan 2024 14:45:10 +0000 (09:45 -0500)
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>
src/mon/MonCommand.h

index 5caebfc6f1343bdaf600103950dab6902ecf3310..2421229c84d6311c9c556ea21d9e42f333f384c2 100644 (file)
@@ -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;