minor fixes

This commit is contained in:
Christian Schwarz
2023-06-23 13:00:28 +02:00
parent 70fdaa47f1
commit 8f8b7ad4fd
2 changed files with 3 additions and 3 deletions

View File

@@ -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()

View File

@@ -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,