cargo fmt

This commit is contained in:
Eric Seppanen
2021-05-24 17:28:56 -07:00
parent 69fa10ff86
commit 6f9175ca2d
2 changed files with 8 additions and 3 deletions

View File

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

View File

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