mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:30:56 +00:00
Merge pull request #3803 from yinggaozhen/fix-statistics
GetMapData change to read lock
This commit is contained in:
commit
43a3623f51
@ -117,8 +117,8 @@ func (m *URLMap) GetMap() map[string]interface{} {
|
|||||||
|
|
||||||
// GetMapData return all mapdata
|
// GetMapData return all mapdata
|
||||||
func (m *URLMap) GetMapData() []map[string]interface{} {
|
func (m *URLMap) GetMapData() []map[string]interface{} {
|
||||||
m.lock.Lock()
|
m.lock.RLock()
|
||||||
defer m.lock.Unlock()
|
defer m.lock.RUnlock()
|
||||||
|
|
||||||
var resultLists []map[string]interface{}
|
var resultLists []map[string]interface{}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user