mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 01:16:30 +00:00
committed by
GitHub
parent
3d33ccf4b0
commit
83fd639918
@@ -633,7 +633,7 @@ impl ManageConnection for ServerPool {
|
||||
|
||||
/// Get the connection pool
|
||||
pub fn get_pool(db: &str, user: &str) -> Option<ConnectionPool> {
|
||||
match get_all_pools().get(&PoolIdentifier::new(&db, &user)) {
|
||||
match (*(*POOLS.load())).get(&PoolIdentifier::new(db, user)) {
|
||||
Some(pool) => Some(pool.clone()),
|
||||
None => None,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user