From d1a349b05013210055a6cc7bbbfdfa1dc951f572 Mon Sep 17 00:00:00 2001 From: rrizun Date: Mon, 18 Feb 2008 07:18:11 +0000 Subject: [PATCH] flush(): update mtime git-svn-id: http://s3fs.googlecode.com/svn/trunk@55 df820570-a93a-0410-bd06-b72b767a4274 --- s3fs/s3fs.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/s3fs/s3fs.cpp b/s3fs/s3fs.cpp index 175854a..4ea5508 100644 --- a/s3fs/s3fs.cpp +++ b/s3fs/s3fs.cpp @@ -997,9 +997,8 @@ s3fs_flush(const char *path, struct fuse_file_info *fi) { int flags = get_flags(fd); if ((flags & O_RDWR) || (flags & O_WRONLY)) { headers_t meta; - int result = get_headers(path, meta); - if (result != 0) - return result; + VERIFY(get_headers(path, meta)); + meta["x-amz-meta-mtime"]=stringificationizer(time(NULL)); return put_local_fd(path, meta, fd); } return 0;