Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,13 @@ bool StatCache::IncSize(const std::string& key, ssize_t sz)
if (found) {
stat_cache_entry* entry = iter->second;
entry->stbuf.st_size += sz;
S3FS_PRN_INFO3(
"Update file size in stat cache. [path=%s][size=%ld][delta=%ld]",
key.c_str(), entry->stbuf.st_size, sz);
#if __WORDSIZE == 32
S3FS_PRN_INFO3("Update file size in stat cache. [path=%s][size=%lld][delta=%ld]",
key.c_str(), entry->stbuf.st_size, sz);
#else
S3FS_PRN_INFO3("Update file size in stat cache. [path=%s][size=%ld][deltae=%ld]",
key.c_str(), entry->stbuf.st_size, sz);
#endif
}

pthread_mutex_unlock(&StatCache::stat_cache_lock);
Expand Down