Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform incremental rollups instead of rollups at snapshot #4410

Merged
merged 17 commits into from
Jan 9, 2020
Prev Previous commit
Next Next commit
dont make rollupKey public
  • Loading branch information
Paras Shah committed Jan 3, 2020
commit 816c5395eb5753dca03b288d47982b95b06128ab
6 changes: 3 additions & 3 deletions posting/mvcc.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ var (
}
)

// RollUpKey takes the given key's posting lists, rolls it up and writes back to badger
func (ir *IncRollup) RollUpKey(writer *TxnWriter, key []byte) error {
// rollUpKey takes the given key's posting lists, rolls it up and writes back to badger
func (ir *IncRollup) rollUpKey(writer *TxnWriter, key []byte) error {
l, err := GetNoStore(key)
if err != nil {
return err
Expand Down Expand Up @@ -103,7 +103,7 @@ func (ir *IncRollup) HandleIncrementalRollups() {
// Key not present or Key present but last roll up was more than 10 sec ago.
// Add/Update map and rollup.
m[hash] = currTs
err := ir.RollUpKey(writer, key)
err := ir.rollUpKey(writer, key)
if err != nil {
glog.Warningf("Error %v rolling up key %v\n", err, key)
continue
Expand Down