mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-12 18:59:03 -06:00
Merge branch 'zachmu/sys_tables' of github.com:dolthub/dolt into zachmu/sys_tables
This commit is contained in:
@@ -1051,7 +1051,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