Skip to content

Commit

Permalink
store: Log errors from remapping pools more clearly
Browse files Browse the repository at this point in the history
  • Loading branch information
lutter committed Oct 20, 2022
1 parent 37d5d91 commit 34c7c90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion store/postgres/src/connection_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,10 @@ impl PoolCoordinator {
.ok_or_else(|| constraint_violation!("unknown shard {shard}"))?;

for pool in self.pools.lock().unwrap().values() {
pool.remap(server)?;
if let Err(e) = pool.remap(server) {
error!(pool.logger, "Failed to map imports from {}", server.shard; "error" => e.to_string());
return Err(e);
}
}
Ok(())
}
Expand Down

0 comments on commit 34c7c90

Please sign in to comment.