storageConfigsEqual checks if two storage configurations are equal.
(cfg1, cfg2 *storepb.StorageConfig)
| 975 | |
| 976 | // storageConfigsEqual checks if two storage configurations are equal. |
| 977 | func storageConfigsEqual(cfg1, cfg2 *storepb.StorageConfig) bool { |
| 978 | if cfg1 == nil && cfg2 == nil { |
| 979 | return true |
| 980 | } |
| 981 | if cfg1 == nil || cfg2 == nil { |
| 982 | return false |
| 983 | } |
| 984 | |
| 985 | return cfg1.Fillfactor == cfg2.Fillfactor && |
| 986 | cfg1.Buffering == cfg2.Buffering && |
| 987 | cfg1.Tablespace == cfg2.Tablespace && |
| 988 | cfg1.WorkTablespace == cfg2.WorkTablespace && |
| 989 | cfg1.SdoLevel == cfg2.SdoLevel && |
| 990 | cfg1.CommitInterval == cfg2.CommitInterval && |
| 991 | cfg1.PadIndex == cfg2.PadIndex && |
| 992 | cfg1.SortInTempdb == cfg2.SortInTempdb && |
| 993 | cfg1.DropExisting == cfg2.DropExisting && |
| 994 | cfg1.Online == cfg2.Online && |
| 995 | cfg1.AllowRowLocks == cfg2.AllowRowLocks && |
| 996 | cfg1.AllowPageLocks == cfg2.AllowPageLocks && |
| 997 | cfg1.Maxdop == cfg2.Maxdop && |
| 998 | cfg1.DataCompression == cfg2.DataCompression |
| 999 | } |
| 1000 | |
| 1001 | // dimensionalConfigsEqual checks if two dimensional configurations are equal. |
| 1002 | func dimensionalConfigsEqual(cfg1, cfg2 *storepb.DimensionalConfig) bool { |
no outgoing calls
no test coverage detected