mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 01:12:56 +00:00
initdb cache
This commit is contained in:
@@ -3534,6 +3534,7 @@ impl Tenant {
|
||||
// Flush loop needs to be spawned in order to be able to flush.
|
||||
unfinished_timeline.maybe_spawn_flush_loop();
|
||||
|
||||
info!("starting to import from datadir");
|
||||
import_datadir::import_timeline_from_postgres_datadir(
|
||||
unfinished_timeline,
|
||||
&pgdata_path,
|
||||
@@ -3549,6 +3550,7 @@ impl Tenant {
|
||||
anyhow::bail!("failpoint before-checkpoint-new-timeline");
|
||||
});
|
||||
|
||||
info!("calling freeze_and_flush");
|
||||
unfinished_timeline
|
||||
.freeze_and_flush()
|
||||
.await
|
||||
@@ -3559,7 +3561,9 @@ impl Tenant {
|
||||
})?;
|
||||
|
||||
// All done!
|
||||
info!("calling finish_creation");
|
||||
let timeline = raw_timeline.finish_creation()?;
|
||||
info!("call to finish_creation done");
|
||||
|
||||
Ok(timeline)
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ class NeonBroker:
|
||||
raise RuntimeError(
|
||||
f"timed out waiting {elapsed:.0f}s for storage_broker start: {e}"
|
||||
) from e
|
||||
time.sleep(0.5)
|
||||
time.sleep(0.1)
|
||||
else:
|
||||
break # success
|
||||
|
||||
|
||||
Reference in New Issue
Block a user