forked from TrueCloudLab/frostfs-node
Evgenii Stratonikov
0e31c12e63
Drop duplicate entities. Format entities. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com> Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
23 lines
394 B
Go
23 lines
394 B
Go
package searchsvc
|
|
|
|
import (
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/internal/logs"
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
func (exec *execCtx) executeLocal() {
|
|
ids, err := exec.svc.localStorage.search(exec)
|
|
|
|
if err != nil {
|
|
exec.status = statusUndefined
|
|
exec.err = err
|
|
|
|
exec.log.Debug(logs.SearchLocalOperationFailed,
|
|
zap.String("error", err.Error()),
|
|
)
|
|
|
|
return
|
|
}
|
|
|
|
exec.writeIDList(ids)
|
|
}
|