Fix error 500 on organization dashboard page (#150)
This commit is contained in:
parent
e2aa991e10
commit
a8c6698de8
12 changed files with 190 additions and 162 deletions
4
vendor/github.com/go-xorm/xorm/lru_cacher.go
generated
vendored
4
vendor/github.com/go-xorm/xorm/lru_cacher.go
generated
vendored
|
@ -92,7 +92,7 @@ func (m *LRUCacher) GC() {
|
|||
}
|
||||
}
|
||||
|
||||
// Get all bean's ids according to sql and parameter from cache
|
||||
// GetIds returns all bean's ids according to sql and parameter from cache
|
||||
func (m *LRUCacher) GetIds(tableName, sql string) interface{} {
|
||||
m.mutex.Lock()
|
||||
defer m.mutex.Unlock()
|
||||
|
@ -121,7 +121,7 @@ func (m *LRUCacher) GetIds(tableName, sql string) interface{} {
|
|||
return nil
|
||||
}
|
||||
|
||||
// Get bean according tableName and id from cache
|
||||
// GetBean returns bean according tableName and id from cache
|
||||
func (m *LRUCacher) GetBean(tableName string, id string) interface{} {
|
||||
m.mutex.Lock()
|
||||
defer m.mutex.Unlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue