diff --git a/pageserver/src/repository.rs b/pageserver/src/repository.rs index 61c9c45c11..8d4350255f 100644 --- a/pageserver/src/repository.rs +++ b/pageserver/src/repository.rs @@ -363,7 +363,7 @@ mod tests { // though the relation was created only at a later LSN // rocksdb implementation erroneosly returns 'true' here assert_eq!(tline.get_relsize_exists(TESTREL_A, Lsn(1))?, true); // CORRECT: false - // And this probably should throw an error, becaue the relation doesn't exist at Lsn(1) yet + // And this probably should throw an error, becaue the relation doesn't exist at Lsn(1) yet assert_eq!(tline.get_relsize(TESTREL_A, Lsn(1))?, 0); // CORRECT: throw error assert_eq!(tline.get_relsize_exists(TESTREL_A, Lsn(2))?, true); diff --git a/pageserver/src/repository/rocksdb.rs b/pageserver/src/repository/rocksdb.rs index b5e2ae856e..212ca4ab15 100644 --- a/pageserver/src/repository/rocksdb.rs +++ b/pageserver/src/repository/rocksdb.rs @@ -654,13 +654,18 @@ impl RocksTimeline { ); lsn = last_valid_lsn; } - trace!("Start waiting for LSN {}, valid LSN is {}", lsn, self.last_valid_lsn.load()); + trace!( + "Start waiting for LSN {}, valid LSN is {}", + lsn, + self.last_valid_lsn.load() + ); self.last_valid_lsn .wait_for_timeout(lsn, TIMEOUT) .with_context(|| { format!( "Timed out while waiting for WAL record at LSN {} to arrive. valid LSN in {}", - lsn, self.last_valid_lsn.load(), + lsn, + self.last_valid_lsn.load(), ) })?; //trace!("Stop waiting for LSN {}, valid LSN is {}", lsn, self.last_valid_lsn.load());