mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 13:19:53 +05:00
Redis pool - Lock on close
This commit is contained in:
@@ -134,7 +134,9 @@ func (rs *RedisStorage) Cmd(cmd string, args ...interface{}) *redis.Resp {
|
||||
}
|
||||
|
||||
func (rs *RedisStorage) Close() {
|
||||
rs.poolLock.Lock()
|
||||
rs.dbPool.Empty()
|
||||
rs.poolLock.Unlock()
|
||||
}
|
||||
|
||||
func (rs *RedisStorage) Flush(ignore string) error {
|
||||
|
||||
Reference in New Issue
Block a user