From 82ad7b3be8478628ef448c97a702f4c6f1298329 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Thu, 28 Oct 2010 13:15:26 +0000 Subject: performance/quick-read: set right validation checks Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 2027 (Updates not happening with replication) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2027 --- xlators/performance/quick-read/src/quick-read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/performance') 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); -- cgit