File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change 99 "bytes"
1010 "context"
1111 "encoding/hex"
12- "fmt"
1312 "math"
1413 "strconv"
1514 "sync"
@@ -27,7 +26,6 @@ import (
2726 "github.com/dgraph-io/dgo/v250/protos/api"
2827 "github.com/dgraph-io/ristretto/v2"
2928 "github.com/dgraph-io/ristretto/v2/z"
30- "github.com/hypermodeinc/dgraph/v25/codec"
3129 "github.com/hypermodeinc/dgraph/v25/protos/pb"
3230 "github.com/hypermodeinc/dgraph/v25/x"
3331)
@@ -116,29 +114,11 @@ func (ir *incrRollupi) rollUpKey(writer *TxnWriter, key []byte) error {
116114 return err
117115 }
118116
119- l .RLock ()
120- length := l .GetLength (ts )
121- l .RUnlock ()
122-
123117 kvs , err := l .Rollup (nil , ts )
124118 if err != nil {
125119 return err
126120 }
127121
128- pk , _ := x .Parse (key )
129-
130- if pk .IsData () {
131- pl := & pb.PostingList {}
132- if err := proto .Unmarshal (kvs [0 ].Value , pl ); err != nil {
133- return err
134- }
135- newLength := codec .ExactLen (pl .Pack )
136- if newLength != length {
137- fmt .Println (l .Print ())
138- panic (errors .Errorf ("New length %d does not match old length %d" , newLength , length ))
139- }
140- }
141-
142122 RemoveCacheFor (key )
143123 // TODO Update cache with rolled up results
144124 // If we do a rollup, we typically won't need to update the key in cache.
You can’t perform that action at this time.
0 commit comments