]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
auth/AuthServiceHandler: keep track of global_id and whether it is new
authorIlya Dryomov <idryomov@gmail.com>
Tue, 9 Mar 2021 15:33:55 +0000 (16:33 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 12 Apr 2021 18:56:35 +0000 (20:56 +0200)
commit84afc70ea42c6421ca1f111761890b7f1d89a2e7
tree6d069501e3a6f54ff1aac6e16c127ced563dfe25
parentec0f91fff697cd4ab22f7a5065226ad829ca6f47
auth/AuthServiceHandler: keep track of global_id and whether it is new

AuthServiceHandler already has global_id field, but it is unused.
Revive it and let the handler know whether global_id is newly assigned
by the monitor or provided by the client.

Lift the setting of entity_name into AuthServiceHandler.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit b50b6abd60e730176a7ef602bdd25d789a3c467d)

Conflicts:
src/auth/cephx/CephxServiceHandler.cc [ bufferlist vs
  ceph::buffer::list ]
src/auth/cephx/CephxServiceHandler.h [ ditto ]
src/auth/none/AuthNoneServiceHandler.h [ ditto ]
src/auth/AuthServiceHandler.cc
src/auth/AuthServiceHandler.h
src/auth/cephx/CephxServiceHandler.cc
src/auth/cephx/CephxServiceHandler.h
src/auth/krb/KrbServiceHandler.cpp
src/auth/krb/KrbServiceHandler.hpp
src/auth/none/AuthNoneServiceHandler.h
src/mon/AuthMonitor.cc
src/mon/Monitor.cc