From f2068f284fa3f39eb6be767940766387fbb83f57 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Fri, 8 Nov 2024 12:22:02 +0700 Subject: [PATCH] save --- erigon-lib/kv/remotedbserver/remotedbserver.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/erigon-lib/kv/remotedbserver/remotedbserver.go b/erigon-lib/kv/remotedbserver/remotedbserver.go index da2d86d7bb0..6bb3d40f4e5 100644 --- a/erigon-lib/kv/remotedbserver/remotedbserver.go +++ b/erigon-lib/kv/remotedbserver/remotedbserver.go @@ -561,7 +561,11 @@ func (s *KvServer) HistorySeek(_ context.Context, req *remote.HistorySeekReq) (r if !ok { return errors.New("server DB doesn't implement kv.Temporal interface") } - reply.V, reply.Ok, err = ttx.HistorySeek(kv.History(req.Table), req.K, req.Ts) + domain, err := kv.String2Domain(req.Table) + if err != nil { + return err + } + reply.V, reply.Ok, err = ttx.HistorySeek(domain, req.K, req.Ts) if err != nil { return err } @@ -629,7 +633,11 @@ func (s *KvServer) HistoryRange(_ context.Context, req *remote.HistoryRangeReq) if !ok { return fmt.Errorf("server DB doesn't implement kv.Temporal interface") } - it, err := ttx.HistoryRange(kv.History(req.Table), fromTs, int(req.ToTs), order.By(req.OrderAscend), limit) + domain, err := kv.String2Domain(req.Table) + if err != nil { + return err + } + it, err := ttx.HistoryRange(domain, fromTs, int(req.ToTs), order.By(req.OrderAscend), limit) if err != nil { return err }