Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: server/logdog/storage/archive/storage.go

Issue 1844253002: Fix GS client breakage, remove offset hacks. (Closed) Base URL: https://github.com/luci/luci-go@subscriber-update
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/gcloud/gs/opts.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/logdog/storage/archive/storage.go
diff --git a/server/logdog/storage/archive/storage.go b/server/logdog/storage/archive/storage.go
index 61ce2e096451489b3de7fffe3bead869f30c1cf1..c3f6eb49ed7b7d7bfbf5b17e7c3a30be7974a533 100644
--- a/server/logdog/storage/archive/storage.go
+++ b/server/logdog/storage/archive/storage.go
@@ -14,7 +14,9 @@ package archive
import (
"bytes"
+ "encoding/hex"
"errors"
+ "fmt"
"io"
"io/ioutil"
"sort"
@@ -105,6 +107,8 @@ func (s *storageImpl) Get(req storage.GetRequest, cb storage.GetCallback) error
return err
}
+ fmt.Println("GOT INDEX:", proto.MarshalTextString(idx))
+
// Identify the byte offsets that we want to fetch from the entries stream.
st := s.buildGetStrategy(&req, idx)
if st.lastIndex == -1 || req.Index > st.lastIndex {
@@ -161,6 +165,7 @@ func (s *storageImpl) Get(req storage.GetRequest, cb storage.GetCallback) error
}.Errorf(s, "Failed to read frame data.")
return err
}
+ fmt.Println(hex.EncodeToString(buf.Bytes()))
if err := proto.Unmarshal(buf.Bytes(), &le); err != nil {
log.Fields{
log.ErrorKey: err,
« no previous file with comments | « common/gcloud/gs/opts.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698