diff options
author | Zhaozhong Ni <nzz@google.com> | 2018-05-08 10:06:14 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-05-08 10:07:10 -0700 |
commit | fea624b37a90c0e1efc0c1e7ae7dda7b2d1a0050 (patch) | |
tree | a5993ef86b85bf7d23a8d50007c24c9029da957e /pkg/sentry | |
parent | 09c323910d7f28fec9e4c92e5faaa92bb63bd431 (diff) |
Sentry: always use "best speed" compression for save and remove the option.
PiperOrigin-RevId: 195835861
Change-Id: Ib696b1b571a6b061725a33c535cd7215fe518b97
Diffstat (limited to 'pkg/sentry')
-rw-r--r-- | pkg/sentry/state/state.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pkg/sentry/state/state.go b/pkg/sentry/state/state.go index c306091da..393289926 100644 --- a/pkg/sentry/state/state.go +++ b/pkg/sentry/state/state.go @@ -50,11 +50,6 @@ type SaveOpts struct { // Metadata is save metadata. Metadata map[string]string - // CompressionLevel is the compression level to use. - // - // See statefile.NewWriter for details. - CompressionLevel int - // Callback is called prior to unpause, with any save error. Callback func(err error) } @@ -76,7 +71,7 @@ func (opts SaveOpts) Save(k *kernel.Kernel, w *watchdog.Watchdog) error { addSaveMetadata(opts.Metadata) // Open the statefile. - wc, err := statefile.NewWriter(opts.Destination, opts.Key, opts.Metadata, opts.CompressionLevel) + wc, err := statefile.NewWriter(opts.Destination, opts.Key, opts.Metadata) if err != nil { err = ErrStateFile{err} } else { |