From d45f4707ea602901cb0e561ec50ef784b1349473 Mon Sep 17 00:00:00 2001 From: "ggtakec@gmail.com" Date: Fri, 30 Aug 2013 02:25:27 +0000 Subject: [PATCH] Fixed bugs( Issue 368 ) 1) Fixed Issue 368 Fixed a bug that s3fs could not update local cache. (Issue 368)1.73: Updating existing file on server 'a' does not change length of file on server 'b' git-svn-id: http://s3fs.googlecode.com/svn/trunk@481 df820570-a93a-0410-bd06-b72b767a4274 --- src/fdcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fdcache.cpp b/src/fdcache.cpp index 2e96de5..7b7c132 100644 --- a/src/fdcache.cpp +++ b/src/fdcache.cpp @@ -601,7 +601,7 @@ int FdEntity::Open(ssize_t size, time_t time) fd = -1; return (0 == errno ? -EIO : -errno); } - if(static_cast(st.st_size) != pagelist.Size()){ + if((-1 != size && static_cast(size) != pagelist.Size()) || static_cast(st.st_size) != pagelist.Size()){ is_csf_loaded = false; // reinitializing if(-1 == size){ size = st.st_size;