Move failpoint support code to utils.

To enable them in safekeeper as well.
This commit is contained in:
Arseny Sher
2024-01-01 22:33:27 +03:00
committed by Arseny Sher
parent 90ef48aab8
commit dbd36e40dc
10 changed files with 74 additions and 57 deletions
+2 -1
View File
@@ -31,6 +31,7 @@ use pageserver::{
virtual_file,
};
use postgres_backend::AuthType;
use utils::failpoint_support;
use utils::logging::TracingErrorLayerEnablement;
use utils::signals::ShutdownSignals;
use utils::{
@@ -126,7 +127,7 @@ fn main() -> anyhow::Result<()> {
}
// Initialize up failpoints support
let scenario = pageserver::failpoint_support::init();
let scenario = failpoint_support::init();
// Basic initialization of things that don't change after startup
virtual_file::init(conf.max_file_descriptors);