(nonContextStruct base.NonCancellableContext, dbName string, forceReload bool)
| 1723 | } |
| 1724 | |
| 1725 | func (sc *ServerContext) fetchAndLoadDatabase(nonContextStruct base.NonCancellableContext, dbName string, forceReload bool) (found bool, err error) { |
| 1726 | sc._databasesLock.Lock() |
| 1727 | defer sc._databasesLock.Unlock() |
| 1728 | return sc._fetchAndLoadDatabase(nonContextStruct, dbName, forceReload) |
| 1729 | } |
| 1730 | |
| 1731 | // _fetchAndLoadDatabase will attempt to find the given database name first in a matching bucket name, |
| 1732 | // but then fall back to searching through configs in each bucket to try and find a config. |
no test coverage detected