Skip to content

Commit

Permalink
[fix][client] Skip flush .stats file
Browse files Browse the repository at this point in the history
  • Loading branch information
meilirensheng2020 authored and ketor committed Jan 20, 2025
1 parent 4002535 commit 7b3f7e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client/dingo_fuse_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "client/fuse_client.h"
#include "client/fuse_s3_client.h"
#include "client/warmup/warmup_manager.h"
#include "common/define.h"
#include "common/dynamic_vlog.h"
#include "stub/filesystem/xattr.h"
#include "stub/metric/metric.h"
Expand Down Expand Up @@ -625,6 +626,9 @@ void FuseOpFlush(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info* fi) {
DINGOFS_ERROR rc;
auto* client = Client();
auto fs = client->GetFileSystem();
if (BAIDU_UNLIKELY(ino == dingofs::STATSINODEID)) { // skip flush .stats file
return fs->ReplyError(req, DINGOFS_ERROR::OK);
}
METRIC_GUARD(Flush);
AccessLogGuard log([&]() {
return StrFormat("flush (%d,%d): %s", ino, fi->fh, StrErr(rc));
Expand Down

0 comments on commit 7b3f7e3

Please sign in to comment.