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:
ggtakec@gmail.com 2013-05-07 02:35:30 +00:00
parent 6ba609eb66
commit 5de37a6807

View File

@ -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;
}