Skip to content

Commit

Permalink
fix leaked sustained in SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Aug 12, 2021
1 parent 81122ae commit 1636871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/meta/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,7 @@ func (m *dbMeta) cleanStaleSession(sid uint64) {
done = false
} else {
_ = m.txn(func(ses *xorm.Session) error {
_, err = ses.Delete(&s)
_, err = ses.Delete(&sustained{Sid: sid, Inode: inode})
return err
})
}
Expand Down

0 comments on commit 1636871

Please sign in to comment.