]> source.dussan.org Git - gitea.git/commit
Close the temp file when dumping database to make the temp file can be deleted on...
authorwxiaoguang <wxiaoguang@gmail.com>
Thu, 2 Mar 2023 15:57:31 +0000 (23:57 +0800)
committerGitHub <noreply@github.com>
Thu, 2 Mar 2023 15:57:31 +0000 (23:57 +0800)
commit294124d129b12673109767abd331c78c71e3bf2c
tree3d59539160776693710d97b4ecae792adb5c164f
parentea1d09718ce2e3bf043c60bae76dd6bd7e84e9fe
Close the temp file when dumping database to make the temp file can be deleted on Windows (#23249)

There was no `dbDump.Close()` before, Windows doesn't like to delete
opened files.
cmd/dump.go