diff --git a/pkg/meta/sql.go b/pkg/meta/sql.go index 2723e64f70c6..c7bc5a309e3f 100644 --- a/pkg/meta/sql.go +++ b/pkg/meta/sql.go @@ -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 }) }