MCPcopy
hub / github.com/kopia/kopia / updateEpochParameters

Function updateEpochParameters

cli/command_repository_set_parameters.go:143–155  ·  view source on GitHub ↗
(mp *format.MutableParameters, anyChange, upgradeToEpochManager *bool)

Source from the content-addressed store, hash-verified

141}
142
143func updateEpochParameters(mp *format.MutableParameters, anyChange, upgradeToEpochManager *bool) {
144 *anyChange = true
145
146 if !mp.EpochParameters.Enabled {
147 mp.EpochParameters = epoch.DefaultParameters()
148 mp.IndexVersion = 2
149 *upgradeToEpochManager = true
150 }
151
152 if mp.Version < format.FormatVersion2 {
153 mp.Version = format.FormatVersion2
154 }
155}
156
157func disableBlobRetention(ctx context.Context, blobcfg *format.BlobStorageConfiguration, anyChange *bool) {
158 log(ctx).Info("disabling blob retention")

Callers 1

runMethod · 0.85

Calls 1

DefaultParametersFunction · 0.92

Tested by

no test coverage detected