Browse Source

s3tables: Rename tableMetadataInternal.Schema to Metadata

The field name 'Schema' was confusing given it holds a *TableMetadata struct
and serializes as 'metadata' in JSON. Rename to 'Metadata' for clarity and
consistency with the JSON tag and intended meaning.
pull/8147/head
Chris Lu 3 weeks ago
parent
commit
fb8390c6a7
  1. 2
      weed/s3api/s3tables/utils.go

2
weed/s3api/s3tables/utils.go

@ -106,7 +106,7 @@ type tableMetadataInternal struct {
OwnerAccountID string `json:"ownerAccountId"`
VersionToken string `json:"versionToken"`
MetadataLocation string `json:"metadataLocation,omitempty"`
Schema *TableMetadata `json:"metadata,omitempty"`
Metadata *TableMetadata `json:"metadata,omitempty"`
}
// Utility functions

Loading…
Cancel
Save