mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
♻️ Improve transaction flush
This commit is contained in:
parent
72d1a059ac
commit
8dd0629b9c
23 changed files with 69 additions and 82 deletions
|
|
@ -478,7 +478,7 @@ func ExportData() (zipPath string, err error) {
|
|||
}
|
||||
|
||||
func exportData(exportFolder string) (zipPath string, err error) {
|
||||
WaitForWritingFiles()
|
||||
FlushTxQueue()
|
||||
|
||||
logging.LogInfof("exporting data...")
|
||||
|
||||
|
|
@ -521,7 +521,7 @@ func exportData(exportFolder string) (zipPath string, err error) {
|
|||
}
|
||||
|
||||
func ExportResources(resourcePaths []string, mainName string) (exportFilePath string, err error) {
|
||||
WaitForWritingFiles()
|
||||
FlushTxQueue()
|
||||
|
||||
// 用于导出的临时文件夹完整路径
|
||||
exportFolderPath := filepath.Join(util.TempDir, "export", mainName)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue