revert ResetBootstrapState removal on app termination since closing the db explicitly enforces checkout and clearing the side-car wal file
This commit is contained in:
+3
-1
@@ -557,8 +557,10 @@ func (app *BaseApp) Restart() error {
|
||||
App: app,
|
||||
IsRestart: true,
|
||||
}, func(e *TerminateEvent) error {
|
||||
e.App.ResetBootstrapState()
|
||||
|
||||
// attempt to restart the bootstrap process in case execve returns an error for some reason
|
||||
defer app.Bootstrap()
|
||||
defer e.App.Bootstrap()
|
||||
|
||||
return syscall.Exec(execPath, os.Args, os.Environ())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user