Skip to content

Commit

Permalink
Dont use is_importing for push limit
Browse files Browse the repository at this point in the history
Now that we have the `import_skip_push_limit` stat
available, we can use it to skip push limiti.
  • Loading branch information
elhmn committed Jan 17, 2025
1 parent aeb2528 commit ea702de
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/spokes/spokes.go
Original file line number Diff line number Diff line change
Expand Up @@ -955,11 +955,7 @@ func (r *spokesReceivePack) isFsckConfigEnabled() bool {
}

func (r *spokesReceivePack) getMaxInputSize() (int, error) {
// We want to skip the default push limit when the `import_skip_push_limit`
// stat is set only.
// We keep using the `is_import` here for backward compatibility only,
// which should be removed on a subsequent PR.
if isImporting() || skipPushLimit() {
if skipPushLimit() {
return 80 * 1024 * 1024 * 1024, nil /* 80 GB */
}

Expand Down

0 comments on commit ea702de

Please sign in to comment.