]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
client: remove expect_null and cleanup the code get_or_create()
authorXiubo Li <xiubli@redhat.com>
Mon, 28 Mar 2022 05:51:53 +0000 (13:51 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 29 Mar 2022 04:57:46 +0000 (12:57 +0800)
commit3e9c91afa1ffb8055d758444375e61e1e6ea0217
tree3a7bfb61d051ebc4a14528dd93d13ebc6d584495
parent2022a56646ba9f6b1cc7af1b7d6deeda5df51242
client: remove expect_null and cleanup the code get_or_create()

The expect_null is never used and it will make the code more complex.
Just remove it and simplify the related code.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/client/Client.cc
src/client/Client.h