diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-10-28 13:15:26 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-10-28 20:42:35 -0700 |
commit | 82ad7b3be8478628ef448c97a702f4c6f1298329 (patch) | |
tree | d692842af34b25c8634f5533c816ff3f995cb4c2 /xlators/performance | |
parent | d615015ef4707d0df476547cbf7b6f83a29d804b (diff) |
performance/quick-read: set right validation checks
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2027 (Updates not happening with replication)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2027
Diffstat (limited to 'xlators/performance')
-rw-r--r-- | xlators/performance/quick-read/src/quick-read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index 3bd0a615424..990348255e1 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -682,7 +682,7 @@ wind: } -static inline char +static inline time_t qr_time_elapsed (struct timeval *now, struct timeval *then) { return now->tv_sec - then->tv_sec; @@ -743,7 +743,7 @@ qr_validate_cache_cbk (call_frame_t *frame, void *cookie, xlator_t *this, gettimeofday (&qr_inode->tv, NULL); if ((qr_inode->stbuf.ia_mtime != buf->ia_mtime) - && (qr_inode->stbuf.ia_mtime_nsec + || (qr_inode->stbuf.ia_mtime_nsec != buf->ia_mtime_nsec)) { inode_ctx_del (local->fd->inode, this, NULL); __qr_inode_free (qr_inode); |