diff options
| author | Xavi Hernandez <xhernandez@redhat.com> | 2020-03-30 11:09:39 +0200 |
|---|---|---|
| committer | hari gowtham <hari.gowtham005@gmail.com> | 2020-04-21 10:18:39 +0000 |
| commit | 105bb9c58676a47cb61635df792b188d6a4af563 (patch) | |
| tree | 1b83b7f2949ec8ef5a4e1f7060f9bf72670b0548 /libglusterfs/src/common-utils.c | |
| parent | b398c6629d8cdb5964531f74fcc938c047c6ef63 (diff) | |
md-cache: avoid clearing cache when not necessary
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>
Diffstat (limited to 'libglusterfs/src/common-utils.c')
0 files changed, 0 insertions, 0 deletions
