]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/AuthMonitor: check if entity is absent before creating it
authorRishabh Dave <ridave@redhat.com>
Thu, 28 Sep 2023 17:34:51 +0000 (23:04 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 6 Oct 2023 08:52:14 +0000 (14:22 +0530)
commita669cd642251bacfcfd6188e72404fd824c80b73
treeb6c4960abed033c5f7c02f1dfc58321b2a1fbd0e
parent4228df3f35f2bad107770ebffe57939dda0393c7
mon/AuthMonitor: check if entity is absent before creating it

Although this code path is not used for creating entities yet, it is
better to fix the bug sooner than later. Method
AuthMonitor::_update_or_create_entity() must exit (with appropriate
error code) when entity to be created on the Ceph cluster is already
present.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/mon/AuthMonitor.cc