mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-28 12:40:16 -05:00
[ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh
This commit is contained in:
@@ -1043,7 +1043,7 @@ func (db Database) tableInsensitive(ctx *sql.Context, root doltdb.RootValue, tab
|
||||
}
|
||||
|
||||
tableListKey := root.TableListHash()
|
||||
|
||||
|
||||
// TODO: refactor to make caching logic more obvious, cache and then retrieve
|
||||
// TODO: why would tableListKey ever be zero?
|
||||
if tableListKey != 0 {
|
||||
|
||||
@@ -261,14 +261,14 @@ func (c *SessionCache) CacheTableChecks(key doltdb.DataCacheKey, checks []sql.Ch
|
||||
c.checks[key] = checks
|
||||
}
|
||||
|
||||
// GetTableNameMap returns the cached names of tables in a given root, keyed by their lower-case name, to their
|
||||
// GetTableNameMap returns the cached names of tables in a given root, keyed by their lower-case name, to their
|
||||
// case-sensitive name
|
||||
func (c *SessionCache) GetTableNameMap(key uint64) (map[string]string, bool) {
|
||||
tables, ok := c.tableMaps[key]
|
||||
return tables, ok
|
||||
}
|
||||
|
||||
// CacheTableNameMap caches the names of tables in a given root, keyed by their lower-case name, to their
|
||||
// CacheTableNameMap caches the names of tables in a given root, keyed by their lower-case name, to their
|
||||
// case-sensitive name
|
||||
func (c *SessionCache) CacheTableNameMap(key uint64, tables map[string]string) {
|
||||
c.mu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user