2020-09-22 06:51:47 +00:00
|
|
|
package searchsvc
|
|
|
|
|
|
|
|
import (
|
2023-04-12 14:01:29 +00:00
|
|
|
"context"
|
|
|
|
|
2023-04-12 14:35:10 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/internal/logs"
|
2020-12-10 12:26:40 +00:00
|
|
|
"go.uber.org/zap"
|
2020-09-22 06:51:47 +00:00
|
|
|
)
|
|
|
|
|
2023-04-12 14:01:29 +00:00
|
|
|
func (exec *execCtx) executeLocal(ctx context.Context) {
|
|
|
|
ids, err := exec.svc.localStorage.search(ctx, exec)
|
2020-09-22 06:51:47 +00:00
|
|
|
|
2020-10-29 17:16:49 +00:00
|
|
|
if err != nil {
|
2020-12-10 12:26:40 +00:00
|
|
|
exec.status = statusUndefined
|
|
|
|
exec.err = err
|
2020-09-22 06:51:47 +00:00
|
|
|
|
2023-04-12 14:35:10 +00:00
|
|
|
exec.log.Debug(logs.SearchLocalOperationFailed,
|
2020-12-10 12:26:40 +00:00
|
|
|
zap.String("error", err.Error()),
|
|
|
|
)
|
2020-09-22 06:51:47 +00:00
|
|
|
|
2020-12-10 12:26:40 +00:00
|
|
|
return
|
2020-09-22 06:51:47 +00:00
|
|
|
}
|
|
|
|
|
2020-12-10 12:26:40 +00:00
|
|
|
exec.writeIDList(ids)
|
2020-09-22 06:51:47 +00:00
|
|
|
}
|