summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src/libglusterfsclient-internals.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-07-02 06:20:21 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-07 16:24:51 -0700
commitc8ef6e541f4dacd58258b0448046d4fae2c511be (patch)
tree74c77dbc2b1514504302e86e8fdfad6752fa334e /libglusterfsclient/src/libglusterfsclient-internals.h
parent41027a22054af821caeb2b47a7b93ff028ecaedf (diff)
libglusterfsclient: Update attr cache on read/write
We werent updating the attr AKA stat cache on read and write on files so every stat on the file before the timeout was returning stale attr from the cache. Yuck! This fixes it. Turns out there is a good aspect of unfs3's notoriety when it comes to doing stat()s for every operation. Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient-internals.h')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient-internals.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient-internals.h b/libglusterfsclient/src/libglusterfsclient-internals.h
index 9b14dcb9153..951843ef421 100755
--- a/libglusterfsclient/src/libglusterfsclient-internals.h
+++ b/libglusterfsclient/src/libglusterfsclient-internals.h
@@ -64,10 +64,12 @@ typedef struct {
int32_t size;
} lookup;
}fop;
- fd_t *dirfd; /* Needed here because we need a ref to the dir
+ fd_t *fd; /* Needed here because we need a ref to the dir
fd in the libgf_client_readdir_cbk in order
to process the dirents received, without
having them added to the reply stub.
+ Also used in updating iattr cache. See
+ readv_cbk for eg.
*/
}libgf_client_local_t;