File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2098,8 +2098,21 @@ const (
20982098 // or lifecycle management. An example of an external file is a file restored
20992099 // from a backup.
21002100 BackingTypeExternal
2101+ backingTypeCount
21012102)
21022103
2104+ var backingTypeToString = [backingTypeCount ]string {
2105+ BackingTypeLocal : "local" ,
2106+ BackingTypeShared : "shared" ,
2107+ BackingTypeSharedForeign : "shared-foreign" ,
2108+ BackingTypeExternal : "external" ,
2109+ }
2110+
2111+ // String implements fmt.Stringer.
2112+ func (b BackingType ) String () string {
2113+ return backingTypeToString [b ]
2114+ }
2115+
21032116// SSTableInfo export manifest.TableInfo with sstable.Properties alongside
21042117// other file backing info.
21052118type SSTableInfo struct {
You can’t perform that action at this time.
0 commit comments