]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
AuthMonitor: add helper method _check_and_encode_caps()
authorRishabh Dave <ridave@redhat.com>
Fri, 9 Jun 2023 11:14:34 +0000 (16:44 +0530)
committerRishabh Dave <ridave@redhat.com>
Sun, 18 Jun 2023 13:14:24 +0000 (18:44 +0530)
commit020ecffd3c8d55a7ecbb360c2a2e827fdd922774
treea448a673cda9ed32e936fdf82c6c933adc6f6534
parent7738a6430acbc2eb653f39de942fc529b48aa794
AuthMonitor: add helper method _check_and_encode_caps()

Instead of rewriting, code to check if caps are valid & to encode caps,
let's create a new helper method and use it instead.

Also, the name "new_caps" is used to store encoded caps. Let's rename
such variables to "encoded_caps".

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