File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -117,13 +117,11 @@ func (r *Reaper) Reap(ctx context.Context) {
117
117
r .CreateSourceHelpers (ctx , srcL , monitoredSource )
118
118
119
119
if monitoredSource .IsPostgresSource () {
120
- if r .Sources .MinDbSizeMB >= 8 { // an empty DB is a bit less than 8MB
121
- DBSizeMB := monitoredSource .ApproxDbSize / 1048576 // only remove from monitoring when we're certain it's under the threshold
122
- if DBSizeMB != 0 && DBSizeMB < r .Sources .MinDbSizeMB {
123
- srcL .Infof ("ignored due to the --min-db-size-mb filter, current size %d MB" , DBSizeMB )
124
- hostsToShutDownDueToRoleChange [monitoredSource .Name ] = true // for the case when DB size was previosly above the threshold
125
- continue
126
- }
120
+ DBSizeMB := monitoredSource .ApproxDbSize / 1048576 // only remove from monitoring when we're certain it's under the threshold
121
+ if DBSizeMB != 0 && DBSizeMB < r .Sources .MinDbSizeMB {
122
+ srcL .Infof ("ignored due to the --min-db-size-mb filter, current size %d MB" , DBSizeMB )
123
+ hostsToShutDownDueToRoleChange [monitoredSource .Name ] = true // for the case when DB size was previosly above the threshold
124
+ continue
127
125
}
128
126
129
127
lastKnownStatusInRecovery := hostLastKnownStatusInRecovery [monitoredSource .Name ]
You can’t perform that action at this time.
0 commit comments