]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs: avoid map been inserted by mistake 29878/head
authorXiao Guodong <xiaogd@inspur.com>
Thu, 25 Jul 2019 08:36:05 +0000 (16:36 +0800)
committerPrashant D <pdhange@redhat.com>
Mon, 26 Aug 2019 00:37:09 +0000 (20:37 -0400)
commitc4ba9765250d0c559fce12fe0935db31de4bd74f
tree0758a75bd8a6e6806142ac6accba6f3faa8476c0
parent49a6c9aaf29cfb947ac384277ebed4d7897eaf01
cephfs: avoid map been inserted by mistake

if map client_caps has not key client, client_caps[client] will insert key client with null value into the map.

Fixes: https://tracker.ceph.com/issues/40939
Signed-off-by: XiaoGuoDong2019 <xiaogd@inspur.com>
(cherry picked from commit 1959fee90a3f4eb351b2975a56b386a0a516239d)
src/mds/SnapRealm.h