Feat: use transactions to manipulate user's used storage

This commit is contained in:
HFO4
2022-02-27 14:24:17 +08:00
parent 285e80ba76
commit 521c5c8dc4
11 changed files with 56 additions and 81 deletions

View File

@@ -195,7 +195,7 @@ func (monitor *Monitor) ValidateFile() error {
}
// 验证用户容量
if err := filesystem.HookValidateCapacityWithoutIncrease(context.Background(), fs, file); err != nil {
if err := filesystem.HookValidateCapacity(context.Background(), fs, file); err != nil {
return err
}