From: Kefu Chai Date: Mon, 27 Aug 2018 08:26:10 +0000 (+0800) Subject: mon/MonClient: avoid using magic number for the `MAuth::protocol` X-Git-Tag: v14.0.1~477^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7e38d82c6d0a0a37cc1aa24fb7e5fc230388c801;p=ceph-ci.git mon/MonClient: avoid using magic number for the `MAuth::protocol` Signed-off-by: Kefu Chai --- diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index 6cf4a4ea5d3..0731c86eb7e 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -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);