diff options
| -rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index cf85ba90284..187df1b7625 100755 --- a/libglusterfsclient/src/libglusterfsclient.c +++ b/libglusterfsclient/src/libglusterfsclient.c @@ -3219,8 +3219,7 @@ libgf_client_read (libglusterfs_client_ctx_t *ctx,                  }                  stbuf = &stub->args.readv_cbk.stbuf;                  libgf_transform_devnum (ctx, stbuf); -                libgf_update_iattr_cache (fd->inode, LIBGF_UPDATE_STAT, -                                          stbuf); +                libgf_invalidate_iattr_cache (fd->inode, LIBGF_INVALIDATE_STAT);          }  	call_stub_destroy (stub); @@ -3346,8 +3345,7 @@ libgf_client_readv (libglusterfs_client_ctx_t *ctx,                  stbuf = &stub->args.readv_cbk.stbuf;                  libgf_transform_devnum (ctx, stbuf); -                libgf_update_iattr_cache (local->fd->inode, LIBGF_UPDATE_STAT, -                                          stbuf); +                libgf_invalidate_iattr_cache (fd->inode, LIBGF_UPDATE_STAT);          }  	call_stub_destroy (stub);  | 
