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-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F23747%2Fhead;p=ceph.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);