Add O_APPEND flag
continuous-integration/drone/push Build is failing Details

This commit is contained in:
SeraphJACK 2023-09-26 20:35:26 +08:00
parent e6266d4449
commit d409948175
Signed by: SeraphJACK
GPG Key ID: B4FFEA56F3BE0D0C
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ func CommitTransaction(txn *syntax.Transaction) error {
}
// Write txn bean language to bean file
f, err := os.OpenFile(fullBeanPath, os.O_RDWR|os.O_CREATE, 0644)
f, err := os.OpenFile(fullBeanPath, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644)
if err != nil {
return err
}