mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-15 20:20:38 +00:00
minor fixes
This commit is contained in:
@@ -2671,7 +2671,7 @@ impl Tenant {
|
||||
// TODO should we check for state in s3 as well?
|
||||
// Right now we're overwriting IndexPart but other layer files would remain.
|
||||
|
||||
// do a few opportunistic checks before trying to get out spot
|
||||
// do a few opportunistic checks before trying to get our spot
|
||||
check_uninit_mark_not_exist()?;
|
||||
check_timeline_path_not_exist()?;
|
||||
|
||||
@@ -2692,8 +2692,8 @@ impl Tenant {
|
||||
};
|
||||
|
||||
// Do all the checks again, now we know that we won.
|
||||
check_timeline_path_not_exist()?;
|
||||
check_uninit_mark_not_exist()?;
|
||||
check_timeline_path_not_exist()?;
|
||||
|
||||
let create_uninit_mark_file = || {
|
||||
fs::OpenOptions::new()
|
||||
|
||||
@@ -1780,7 +1780,7 @@ impl Timeline {
|
||||
|
||||
if disk_consistent_lsn == Lsn(0) {
|
||||
// If disk_consistent_lsn is 0, then we're still in bootstrap/basebackup_import/create_test_timeline.
|
||||
// Set next_open_layer_at to initdb_lsn because to enable the put@initdb_lsn optimization in flush_frozen_layer.
|
||||
// Set next_open_layer_at to initdb_lsn to enable the put@initdb_lsn optimization in flush_frozen_layer.
|
||||
assert!(matches!(cause, TimelineLoadCause::TimelineCreate { .. }));
|
||||
assert_eq!(
|
||||
num_layers, 0,
|
||||
|
||||
Reference in New Issue
Block a user