fix(session): cleanup new session file on index rollback
This commit is contained in:
parent
f5b7f3d35a
commit
bcd9efad98
1 changed files with 1 additions and 0 deletions
|
|
@ -133,6 +133,7 @@ func (sm *SessionManager) StartNew(scopeKey string) (string, error) {
|
|||
scope.UpdatedAt = prevUpdated
|
||||
if created {
|
||||
delete(sm.sessions, newSessionKey)
|
||||
_ = sm.deleteSessionFile(newSessionKey)
|
||||
}
|
||||
return "", err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue