Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vadlakondaswetha committed Dec 24, 2024
1 parent a77541f commit 95525e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/fs/inode/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,9 @@ func (f *FileInode) DeRegisterFileHandle(readOnly bool) {
// All write fileHandles associated with bwh are closed. So safe to set bwh to nil.
if f.writeHandleCount == 0 && f.bwh != nil {
err := f.bwh.Destroy()
logger.Warnf("Error while destroying the bufferedWritesHandler: %v", err)
if err != nil {
logger.Warnf("Error while destroying the bufferedWritesHandler: %v", err)
}
f.bwh = nil
}
}
Expand Down

0 comments on commit 95525e0

Please sign in to comment.