]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs: avoid map been inserted by mistake 29833/head
authorXiao Guodong <xiaogd@inspur.com>
Thu, 25 Jul 2019 08:36:05 +0000 (16:36 +0800)
committerPrashant D <pdhange@redhat.com>
Fri, 23 Aug 2019 00:03:43 +0000 (20:03 -0400)
commitf51c4a83f33e544cd4df2bfba03842eddfdee2a4
tree6b8491045690df41d744fd158623666cba7580ae
parent0508aa240643da6bdb5ec3c9390ad3417eedd4ba
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