diff --git a/pageserver/src/branches.rs b/pageserver/src/branches.rs index a2e554513e..958e03fb29 100644 --- a/pageserver/src/branches.rs +++ b/pageserver/src/branches.rs @@ -173,7 +173,7 @@ fn get_lsn_from_controlfile(path: &Path) -> Result { Ok(Lsn(lsn)) } -// Create the cluster temporarily in a initdbpath directory inside the repository +// Create the cluster temporarily in 'initdbpath' directory inside the repository // to get bootstrap data for timeline initialization. // fn run_initdb(conf: &'static PageServerConf, initdbpath: &Path) -> Result<()> { diff --git a/pageserver/src/layered_repository.rs b/pageserver/src/layered_repository.rs index b44f113d74..6ec4636a6b 100644 --- a/pageserver/src/layered_repository.rs +++ b/pageserver/src/layered_repository.rs @@ -96,7 +96,8 @@ lazy_static! { } lazy_static! { - // NOTE: can be zero if pageserver was restarted an no activity happening + // NOTE: can be zero if pageserver was restarted and there hasn't been any + // activity yet. static ref LOGICAL_TIMELINE_SIZE: IntGaugeVec = register_int_gauge_vec!( "pageserver_logical_timeline_size", "Logical timeline size (bytes)", diff --git a/pageserver/src/restore_local_repo.rs b/pageserver/src/restore_local_repo.rs index fa43c5376a..ff394e8094 100644 --- a/pageserver/src/restore_local_repo.rs +++ b/pageserver/src/restore_local_repo.rs @@ -429,7 +429,7 @@ pub fn save_decoded_record( let dropdb = XlDropDatabase::decode(&mut buf); // To drop the database, we need to drop all the relations in it. Like in - // save_xlog_dbase_create(), use the the previous record's LSN in the list_rels() call + // save_xlog_dbase_create(), use the previous record's LSN in the list_rels() call let req_lsn = min(timeline.get_last_record_lsn(), lsn); for tablespace_id in dropdb.tablespace_ids { diff --git a/zenith_metrics/src/lib.rs b/zenith_metrics/src/lib.rs index 22d94dead8..0d1a60e978 100644 --- a/zenith_metrics/src/lib.rs +++ b/zenith_metrics/src/lib.rs @@ -34,12 +34,12 @@ lazy_static! { } // Records I/O stats in a "cross-platform" way. -// Compiles both on macOs and Linux, but current macOs implementation always returns 0 as values for I/O stats. -// An alternative is to read procfs (`/proc/[pid]/io`) which does not work under macOs at all, hence abandoned. +// Compiles both on macOS and Linux, but current macOS implementation always returns 0 as values for I/O stats. +// An alternative is to read procfs (`/proc/[pid]/io`) which does not work under macOS at all, hence abandoned. // // Uses https://www.freebsd.org/cgi/man.cgi?query=getrusage to retrieve the number of block operations // performed by the process. -// We know the the size of the block, so we can determine the I/O bytes out of it. +// We know the size of the block, so we can determine the I/O bytes out of it. // The value might be not 100% exact, but should be fine for Prometheus metrics in this case. #[allow(clippy::unnecessary_cast)] fn update_io_metrics() {