filer: migrating filer store from persisting shorter structured file id instead of a string

This commit is contained in:
Chris Lu
2019-05-17 02:03:23 -07:00
parent 939de1e832
commit 82b0759493
10 changed files with 361 additions and 126 deletions

View File

@@ -0,0 +1,18 @@
package filer_pb
import (
"testing"
"github.com/gogo/protobuf/proto"
)
func TestFileIdSize(t *testing.T) {
fileIdStr := "11745,0293434534cbb9892b"
fid, _ := toFileId(fileIdStr)
bytes, _ := proto.Marshal(fid)
println(len(fileIdStr))
println(len(bytes))
}