Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions storage/gcp/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,6 @@ func (a *Appender) updateEntryBundles(ctx context.Context, fromSeq uint64, entri
return nil
}

numAdded := uint64(0)
bundleIndex, entriesInBundle := fromSeq/layout.EntryBundleWidth, fromSeq%layout.EntryBundleWidth
bundleWriter := &bytes.Buffer{}
if entriesInBundle > 0 {
Expand Down Expand Up @@ -675,8 +674,6 @@ func (a *Appender) updateEntryBundles(ctx context.Context, fromSeq uint64, entri
return fmt.Errorf("bundleWriter.Write: %v", err)
}
entriesInBundle++
fromSeq++
numAdded++
if entriesInBundle == layout.EntryBundleWidth {
// This bundle is full, so we need to write it out...
klog.V(1).Infof("In-memory bundle idx %d is full, attempting write to GCS", bundleIndex)
Expand Down
Loading