Skip to content

Commit

Permalink
Test 04
Browse files Browse the repository at this point in the history
  • Loading branch information
ggtakec committed May 12, 2024
1 parent 0a116ab commit a2a2055
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fdcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -751,10 +751,9 @@ bool FdManager::Close(FdEntity* ent, int fd)
}
AutoLock auto_lock(&FdManager::fd_manager_lock);

S3FS_PRN_DBG("[ent->file=%s][pseudo_fd=%d]", ent->GetPath().c_str(), fd);

for(fdent_map_t::iterator iter = fent.begin(); iter != fent.end(); ++iter){
if(iter->second.get() == ent){
S3FS_PRN_DBG("[ent->file=%s][pseudo_fd=%d]", ent->GetPath().c_str(), fd);
ent->Close(fd);
if(!ent->IsOpen()){
// remove found entity from map.
Expand Down

0 comments on commit a2a2055

Please sign in to comment.