From: Rishabh Dave Date: Thu, 28 Sep 2023 14:26:01 +0000 (+0530) Subject: mon/AuthMonitor: revise a comment X-Git-Tag: v19.0.0~308^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6cfc4e73e9dbec9815b29bb6df020a0e56f17808;p=ceph.git mon/AuthMonitor: revise a comment Signed-off-by: Rishabh Dave --- diff --git a/src/mon/AuthMonitor.cc b/src/mon/AuthMonitor.cc index 9b2bf70d23c8..1aac226e149d 100644 --- a/src/mon/AuthMonitor.cc +++ b/src/mon/AuthMonitor.cc @@ -1972,9 +1972,11 @@ int AuthMonitor::_check_and_encode_caps(const map& caps, return 0; } -/* Pass both, rdata as well as fmtr, to enable printing of the key after - * update and set create to True to allow authorizing a new entity instead - * of updating its caps. */ +// Update or create an entity, depending on the value of parameter +// create_entity. +// +// Pass both, rdata as well as fmtr, to enable printing of the key after +// update int AuthMonitor::_update_or_create_entity(const EntityName& entity, const map& caps, MonOpRequestRef op, stringstream& ss, stringstream& ds, bufferlist* rdata, Formatter* fmtr, bool create_entity)