mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 18:56:30 +00:00
committed by
GitHub
parent
3d33ccf4b0
commit
83fd639918
@@ -633,7 +633,7 @@ impl ManageConnection for ServerPool {
|
|||||||
|
|
||||||
/// Get the connection pool
|
/// Get the connection pool
|
||||||
pub fn get_pool(db: &str, user: &str) -> Option<ConnectionPool> {
|
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()),
|
Some(pool) => Some(pool.clone()),
|
||||||
None => None,
|
None => None,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user