(ctx context.Context, bucket string, cnf DatabaseConfig, databaseErr *db.DatabaseError)
| 1883 | } |
| 1884 | |
| 1885 | func (sc *ServerContext) _handleInvalidDatabaseConfig(ctx context.Context, bucket string, cnf DatabaseConfig, databaseErr *db.DatabaseError) { |
| 1886 | // track corrupt database context |
| 1887 | sc.invalidDatabaseConfigTracking.addInvalidDatabase(ctx, cnf.Name, cnf, bucket, databaseErr) |
| 1888 | // don't load config + remove from server context (apart from corrupt database map) |
| 1889 | sc._removeDatabase(ctx, cnf.Name) |
| 1890 | } |
| 1891 | |
| 1892 | func (sc *ServerContext) bucketNameFromDbName(ctx context.Context, dbName string) (bucketName string, found bool) { |
| 1893 | // Minimal representation of config struct to be tolerant of invalid database configurations where we still need to find a database name |
no test coverage detected