Skip to content

Commit

Permalink
Merge pull request #306 from scylladb/fix_inflight_shrink_limit
Browse files Browse the repository at this point in the history
fix(inflight): reduce shrinking limit
  • Loading branch information
dkropachev authored May 10, 2023
2 parents 1a91f57 + e513c91 commit 1c69932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inflight/inflight.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
// We track inflights in the map, maps in golang are not shrinking
// Therefore we track how many inflights were deleted and when it reaches the limit
// we forcefully recreate the map to shrink it
const shrinkInflightsLimit = 1000000
const shrinkInflightsLimit = 1000

type InFlight interface {
AddIfNotPresent(uint64) bool
Expand Down

0 comments on commit 1c69932

Please sign in to comment.