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