MergeDatabaseConfigWithDefaults merges the passed in config onto a DefaultDbConfig which results in returned value being populated with defaults when not set
(sc *StartupConfig, dbConfig *DbConfig)
| 109 | // MergeDatabaseConfigWithDefaults merges the passed in config onto a DefaultDbConfig which results in returned value |
| 110 | // being populated with defaults when not set |
| 111 | func MergeDatabaseConfigWithDefaults(sc *StartupConfig, dbConfig *DbConfig) (*DbConfig, error) { |
| 112 | defaultDbConfig := DefaultDbConfig(sc, dbConfig.UseXattrs()) |
| 113 | |
| 114 | err := base.ConfigMerge(defaultDbConfig, dbConfig) |
| 115 | if err != nil { |
| 116 | return nil, err |
| 117 | } |
| 118 | |
| 119 | return defaultDbConfig, nil |
| 120 | } |
| 121 | |
| 122 | // DefaultDbConfig provides a DbConfig with all the default values populated. Used with MergeDatabaseConfigWithDefaults |
| 123 | // to provide defaults to include_runtime config endpoints. |
no test coverage detected