Skip to content

Commit

Permalink
md-cache: avoid clearing cache when not necessary
Browse files Browse the repository at this point in the history
mdc_inode_xatt_set() blindly cleared current cache when dict was not
NULL, even if there was no xattr requested.

This patch fixes this by only calling mdc_inode_xatt_set() when we have
explicitly requested something to cache.

Change-Id: Idc91a4693f1ff39f7059acde26682ccc361b947d
Fixes: #1140
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
  • Loading branch information
xhernandez authored and Rinku Kothiya committed May 9, 2020
1 parent d48de09 commit 7515455
Showing 1 changed file with 93 additions and 72 deletions.

0 comments on commit 7515455

Please sign in to comment.