From 6cfc4e73e9dbec9815b29bb6df020a0e56f17808 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Thu, 28 Sep 2023 19:56:01 +0530 Subject: [PATCH] mon/AuthMonitor: revise a comment Signed-off-by: Rishabh Dave --- src/mon/AuthMonitor.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mon/AuthMonitor.cc b/src/mon/AuthMonitor.cc index 9b2bf70d23c8a..1aac226e149df 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) -- 2.39.5