You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit refactors the GZIP support in the filestream from beta to GA and enables it by default.
The `GZIPExperimental` config field has been replaced with `GZIPDisabled` to make the zero value (`false`) represent the new default behavior (GZIP enabled). The logic throughout the input has been inverted to reflect this change.
For backward compatibility, `GZIPExperimental` is retained in the config struct as a `*bool`. This allows detecting if the field was explicitly set by the user. If it is set, its value is ignored, and a deprecation warning is logged, guiding the user to the new `gzip_disabled` flag.
The validation logic in `config.Validate()` is updated to check `!c.GZIPDisabled`. The error message is now more explicit, instructing developers to set `gzip_disabled: true` if a `file_identity` other than `fingerprint` is required for their use case.
Unit and integration tests have been updated accordingly to remove dependencies on the old `gzip_experimental` flag and to verify the new default behavior, the disable flag, and the deprecation warning.
AI tools used: Cursor.
0 commit comments