mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 00:42:54 +00:00
Crank up logging
This commit is contained in:
@@ -1069,10 +1069,9 @@ impl LayeredTimeline {
|
||||
|
||||
// Recurse into ancestor if needed
|
||||
if Lsn(cont_lsn.0 - 1) <= timeline.ancestor_lsn {
|
||||
trace!(
|
||||
info!(
|
||||
"going into ancestor {}, cont_lsn is {}",
|
||||
timeline.ancestor_lsn,
|
||||
cont_lsn
|
||||
timeline.ancestor_lsn, cont_lsn
|
||||
);
|
||||
let ancestor = timeline.get_ancestor_timeline()?;
|
||||
timeline_owned = ancestor;
|
||||
|
||||
@@ -583,8 +583,6 @@ impl DeltaLayerWriter {
|
||||
}),
|
||||
};
|
||||
|
||||
trace!("created delta layer {}", &layer.path().display());
|
||||
|
||||
// Rename the file to its final name
|
||||
//
|
||||
// Note: This overwrites any existing file. There shouldn't be any.
|
||||
@@ -598,7 +596,9 @@ impl DeltaLayerWriter {
|
||||
lsn_range: self.lsn_range,
|
||||
},
|
||||
);
|
||||
std::fs::rename(self.path, final_path)?;
|
||||
std::fs::rename(self.path, &final_path)?;
|
||||
|
||||
info!("created delta layer {}", final_path.display());
|
||||
|
||||
Ok(layer)
|
||||
}
|
||||
|
||||
@@ -481,7 +481,7 @@ impl ImageLayerWriter {
|
||||
index: HashMap::new(),
|
||||
}),
|
||||
};
|
||||
trace!("created image layer {}", layer.path().display());
|
||||
info!("created image layer {}", layer.path().display());
|
||||
|
||||
self.finished = true;
|
||||
|
||||
|
||||
@@ -594,6 +594,7 @@ impl<'a, R: Repository> DatadirTimelineWriter<'a, R> {
|
||||
// - update relish header with size
|
||||
|
||||
pub fn put_rel_creation(&mut self, rel: RelTag, nblocks: BlockNumber) -> Result<()> {
|
||||
info!("CREATE REL: {}, {} blocks at {}", rel, nblocks, self.lsn);
|
||||
// Add it to the directory entry
|
||||
let dir_key = rel_dir_to_key(rel.spcnode, rel.dbnode);
|
||||
let buf = self.get(dir_key)?;
|
||||
|
||||
Reference in New Issue
Block a user