]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/AuthMonitor: revise a comment
authorRishabh Dave <ridave@redhat.com>
Thu, 28 Sep 2023 14:26:01 +0000 (19:56 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 4 Oct 2023 10:12:02 +0000 (15:42 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/mon/AuthMonitor.cc

index 9b2bf70d23c8a9833812ad4d3178e1ebe68095ba..1aac226e149df2961ffe38e130dd3b66a15c6591 100644 (file)
@@ -1972,9 +1972,11 @@ int AuthMonitor::_check_and_encode_caps(const map<string, string>& 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<string, string>& caps, MonOpRequestRef op, stringstream& ss,
   stringstream& ds, bufferlist* rdata, Formatter* fmtr, bool create_entity)