mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-24 06:18:25 +00:00
Merge pull request #1312 from ggtakec/fix_bug_cache
Fixed a bug about serializing from cache file
This commit is contained in:
commit
9dc4148743
@ -908,8 +908,8 @@ bool PageList::Serialize(CacheFileStat& file, bool is_output, ino_t inode)
|
|||||||
cache_inode = 0;
|
cache_inode = 0;
|
||||||
}else{
|
}else{
|
||||||
// current head format is "<inode>:<size>\n"
|
// current head format is "<inode>:<size>\n"
|
||||||
total = cvt_strtoofft(strhead1.c_str(), /* base= */10);
|
total = cvt_strtoofft(strhead2.c_str(), /* base= */10);
|
||||||
cache_inode = static_cast<ino_t>(cvt_strtoofft(strhead2.c_str(), /* base= */10));
|
cache_inode = static_cast<ino_t>(cvt_strtoofft(strhead1.c_str(), /* base= */10));
|
||||||
if(0 == cache_inode){
|
if(0 == cache_inode){
|
||||||
S3FS_PRN_ERR("wrong inode number in parsed cache stats.");
|
S3FS_PRN_ERR("wrong inode number in parsed cache stats.");
|
||||||
delete[] ptmp;
|
delete[] ptmp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user