mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-17 10:22:56 +00:00
info: stop using stat
we no longer need to use it because in the latter versions we initialize
to correct on-filesystem state with Layer::for_{resident,evicted}.
This commit is contained in:
@@ -788,10 +788,7 @@ impl LayerInner {
|
||||
fn info(&self, reset: LayerAccessStatsReset) -> HistoricLayerInfo {
|
||||
let layer_file_name = self.desc.filename().file_name();
|
||||
|
||||
let remote = self
|
||||
.needs_download_blocking()
|
||||
.map(|maybe| maybe.is_some())
|
||||
.unwrap_or(true);
|
||||
let remote = self.get().is_none();
|
||||
|
||||
let access_stats = self.access_stats.as_api_model(reset);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user