Fix indentation

This commit is contained in:
Konstantin Knizhnik
2021-11-17 12:50:46 +03:00
parent 4acd292717
commit 8fda7a6183
2 changed files with 12 additions and 12 deletions

View File

@@ -294,7 +294,7 @@ impl PostgresNode {
conf.append("max_wal_senders", "10");
// wal_log_hints is mandatory when running against pageserver (see gh issue#192)
// TODO: is it possible to check wal_log_hints at pageserver side via XLOG_PARAMETER_CHANGE?
// conf.append("wal_log_hints", "on");
// conf.append("wal_log_hints", "on");
conf.append("max_replication_slots", "10");
conf.append("hot_standby", "on");
conf.append("shared_buffers", "1MB");

View File

@@ -23,7 +23,7 @@ use std::convert::TryInto;
use std::fs;
use std::fs::{File, OpenOptions};
use std::io::Write;
use std::ops::{Bound::{*}, Deref};
use std::ops::{Bound::*, Deref};
use std::path::PathBuf;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Mutex, MutexGuard, RwLock};
@@ -846,16 +846,16 @@ impl Timeline for BufferedTimeline {
Ok(ZERO_PAGE.clone())
}
};
/*
if let Some(key) = reconstruct_key {
if let Ok(img) = &result {
let mut store = self.store.write().unwrap();
store
.data
.put(&StoreKey::Data(key).ser()?, &PageVersion::Page(img.clone()).ser()?)?;
/*
if let Some(key) = reconstruct_key {
if let Ok(img) = &result {
let mut store = self.store.write().unwrap();
store
.data
.put(&StoreKey::Data(key).ser()?, &PageVersion::Page(img.clone()).ser()?)?;
}
}
}
*/
*/
result
}
@@ -1679,7 +1679,7 @@ impl BufferedTimeline {
seg: dk.blknum / BRIN_SEGMENT_SIZE,
};
// At first iteration we need to scan the whole storage,
// because BRIN does't have enough information
// because BRIN does't have enough information
if last_gc != Lsn(0)
&& store.brin.get(&seg_tag).map_or(true, |lsn| *lsn <= last_gc)
{