fix(search): BuildIndex concurrency error (#7035)

This commit is contained in:
Rammiah
2024-08-22 00:44:55 +08:00
committed by GitHub
parent 74887922b4
commit 48f50a2ceb
6 changed files with 55 additions and 22 deletions

View File

@ -136,9 +136,7 @@ func List(ctx context.Context, storage driver.Driver, path string, args model.Li
model.WrapObjsName(files)
// call hooks
go func(reqPath string, files []model.Obj) {
for _, hook := range objsUpdateHooks {
hook(reqPath, files)
}
HandleObjsUpdateHook(reqPath, files)
}(utils.GetFullPath(storage.GetStorage().MountPath, path), files)
// sort objs