few more review fixes

This commit is contained in:
Stas Kelvich
2021-07-15 16:29:43 +03:00
parent a118557331
commit 2b33894e7b
3 changed files with 13 additions and 19 deletions

View File

@@ -268,7 +268,8 @@ fn start_pageserver(conf: &'static PageServerConf) -> Result<()> {
}
}
// Check that we can bind to address before further initialization
// Check that we can bind to address before starting threads to simplify shutdown
// sequence if port is occupied.
info!("Starting pageserver on {}", conf.listen_addr);
let pageserver_listener = TcpListener::bind(conf.listen_addr.clone())?;