From f324d8e04fd28bce1f12587fe441731a62ffdf10 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Fri, 19 Jun 2020 12:57:27 +0000 Subject: [PATCH] Fixed a bug about serializing from cache file --- src/fdcache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fdcache.cpp b/src/fdcache.cpp index 950f2c4..a0626ee 100644 --- a/src/fdcache.cpp +++ b/src/fdcache.cpp @@ -908,8 +908,8 @@ bool PageList::Serialize(CacheFileStat& file, bool is_output, ino_t inode) cache_inode = 0; }else{ // current head format is ":\n" - total = cvt_strtoofft(strhead1.c_str(), /* base= */10); - cache_inode = static_cast(cvt_strtoofft(strhead2.c_str(), /* base= */10)); + total = cvt_strtoofft(strhead2.c_str(), /* base= */10); + cache_inode = static_cast(cvt_strtoofft(strhead1.c_str(), /* base= */10)); if(0 == cache_inode){ S3FS_PRN_ERR("wrong inode number in parsed cache stats."); delete[] ptmp;