Skip to content

Commit

Permalink
fix gcc error when using fuse (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyshi authored and bluebore committed Nov 23, 2016
1 parent 3f0bd41 commit 3e419cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuse/bfs_mount.cc
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ int bfs_statfs(const char* path, struct statvfs*) {
int bfs_flush(const char* path, struct fuse_file_info* finfo) {
baidu::bfs::File* file = get_bfs_file(finfo);
fprintf(stderr, BFS"flush(%s, %p)\n", path, file);
int32_t ret = file->Sync();
int32_t ret = file->Flush();
if (ret != OK) {
fprintf(stderr, BFS"fsync(%s, %p) fail, error code %s\n",
fprintf(stderr, BFS"flush(%s, %p) fail, error code %s\n",
path, file, baidu::bfs::StrError(ret));
return EIO;
}
Expand Down

0 comments on commit 3e419cc

Please sign in to comment.