Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: Omit empty fields from rangelog json
This shrinks the size of the info field in rangelog entries. gogoproto automatically adds the omitempty json tag for all proto3 fields (that aren't explicitly marked as nullable with a gogoproto tag), but it can't do so if the user specifies a custom jsontag. I don't know for sure why we initially added these, but now I can't remove them without messing up backwards compatibility with the old json field names, so just add the necessary omitempty annotations. Helps with range log size as related to cockroachdb#21260. Release note (sql change): Reduced size of entries stored in the system.rangelog table by not storing empty JSON fields.
- Loading branch information