mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-06-06 11:00:49 +00:00
Cleanup codes
* Cleanup codes after committing r418. git-svn-id: http://s3fs.googlecode.com/svn/trunk@419 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
parent
6ba609eb66
commit
5de37a6807
12
src/s3fs.cpp
12
src/s3fs.cpp
|
@ -389,17 +389,6 @@ static int get_object_attribute(const char *path, struct stat *pstbuf, headers_t
|
|||
}
|
||||
}
|
||||
}
|
||||
#ifdef ORG_CODE_BUG
|
||||
// add into stat cache
|
||||
if(!StatCache::getStatCacheData()->AddStat(strpath, (*pheader), forcedir)){
|
||||
FGPRINT(" get_object_attribute: failed adding stat cache [path=%s]\n", strpath.c_str());
|
||||
return -ENOENT;
|
||||
}
|
||||
if(!StatCache::getStatCacheData()->GetStat(strpath, pstat, pheader, overcheck, pisforce)){
|
||||
FGPRINT(" get_object_attribute: failed getting added stat cache [path=%s]\n", strpath.c_str());
|
||||
return -ENOENT;
|
||||
}
|
||||
#else
|
||||
if(0 != StatCache::getStatCacheData()->GetCacheSize()){
|
||||
// add into stat cache
|
||||
if(!StatCache::getStatCacheData()->AddStat(strpath, (*pheader), forcedir)){
|
||||
|
@ -420,7 +409,6 @@ static int get_object_attribute(const char *path, struct stat *pstbuf, headers_t
|
|||
return -ENOENT;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user