]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonClient: avoid using magic number for the `MAuth::protocol` 23747/head
authorKefu Chai <kchai@redhat.com>
Mon, 27 Aug 2018 08:26:10 +0000 (16:26 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 27 Aug 2018 08:26:10 +0000 (16:26 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/MonClient.cc

index 6cf4a4ea5d3be773d3908f6ed103717fb482401d..0731c86eb7e37229aba79c12800bbdf1e57cb6aa 100644 (file)
@@ -1215,7 +1215,7 @@ void MonConnection::start(epoch_t epoch,
   con->send_keepalive();
 
   auto m = new MAuth;
-  m->protocol = 0;
+  m->protocol = CEPH_AUTH_UNKNOWN;
   m->monmap_epoch = epoch;
   __u8 struct_v = 1;
   encode(struct_v, m->auth_payload);