Fix DEFAULT_GC_PERIOD_SEC type

This commit is contained in:
Konstantin Knizhnik
2021-04-22 12:01:25 +03:00
parent 546266b86d
commit 2ca8fbb6ff
3 changed files with 6 additions and 3 deletions

View File

@@ -138,7 +138,10 @@ pub fn init_repo(local_env: &mut LocalEnv) -> Result<()> {
.arg("--no-instructions")
.env_clear()
.env("LD_LIBRARY_PATH", local_env.pg_lib_dir().to_str().unwrap())
.env("DYLD_LIBRARY_PATH", local_env.pg_lib_dir().to_str().unwrap())
.env(
"DYLD_LIBRARY_PATH",
local_env.pg_lib_dir().to_str().unwrap(),
)
.stdout(Stdio::null())
.status()
.with_context(|| "failed to execute initdb")?;

View File

@@ -20,7 +20,7 @@ use slog::Drain;
use pageserver::{page_service, tui, zenith_repo_dir, PageServerConf};
const DEFAULT_GC_HORIZON: u64 = 0; //64 * 1024 * 1024;
const DEFAULT_GC_PERIOD_SEC: u32 = 1;
const DEFAULT_GC_PERIOD_SEC: u64 = 1;
fn main() -> Result<()> {
let arg_matches = App::new("Zenith page server")