Skip to content

Commit 2f006bc

Browse files
committed
chore: rename
Signed-off-by: Vladislav Oleshko <[email protected]>
1 parent 7080dd8 commit 2f006bc

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

src/server/server_family.cc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,20 +2047,20 @@ void ServerFamily::Info(CmdArgList args, ConnectionContext* cntx) {
20472047
append("ram_misses", m.events.ram_misses);
20482048
}
20492049

2050-
if (should_enter("TIERED_V2", true)) {
2051-
append("tiered_v2_total_stashes", m.tiered_stats_v2.total_stashes);
2052-
append("tiered_v2_total_fetches", m.tiered_stats_v2.total_fetches);
2053-
append("tiered_v2_total_cancels", m.tiered_stats_v2.total_cancels);
2050+
if (should_enter("TIERED", true)) {
2051+
append("tiered_total_stashes", m.tiered_stats_v2.total_stashes);
2052+
append("tiered_total_fetches", m.tiered_stats_v2.total_fetches);
2053+
append("tiered_total_cancels", m.tiered_stats_v2.total_cancels);
20542054

2055-
append("tiered_v2_allocated_bytes", m.tiered_stats_v2.allocated_bytes);
2056-
append("tiered_v2_capacity_bytes", m.tiered_stats_v2.capacity_bytes);
2055+
append("tiered_allocated_bytes", m.tiered_stats_v2.allocated_bytes);
2056+
append("tiered_capacity_bytes", m.tiered_stats_v2.capacity_bytes);
20572057

2058-
append("tiered_v2_pending_read_cnt", m.tiered_stats_v2.pending_read_cnt);
2059-
append("tiered_v2_pending_stash_cnt", m.tiered_stats_v2.pending_stash_cnt);
2058+
append("tiered_pending_read_cnt", m.tiered_stats_v2.pending_read_cnt);
2059+
append("tiered_pending_stash_cnt", m.tiered_stats_v2.pending_stash_cnt);
20602060

2061-
append("tiered_v2_small_bins_cnt", m.tiered_stats_v2.small_bins_cnt);
2062-
append("tiered_v2_small_bins_entries_cnt", m.tiered_stats_v2.small_bins_entries_cnt);
2063-
append("tiered_v2_small_bins_filling_bytes", m.tiered_stats_v2.small_bins_filling_bytes);
2061+
append("tiered_small_bins_cnt", m.tiered_stats_v2.small_bins_cnt);
2062+
append("tiered_small_bins_entries_cnt", m.tiered_stats_v2.small_bins_entries_cnt);
2063+
append("tiered_small_bins_filling_bytes", m.tiered_stats_v2.small_bins_filling_bytes);
20642064
}
20652065

20662066
if (should_enter("PERSISTENCE", true)) {

src/server/tiering/op_manager.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ void OpManager::ProcessStashed(EntryId id, unsigned version, DiskSegment segment
8989
it != pending_stash_ver_.end() && it->second == version) {
9090
pending_stash_ver_.erase(it);
9191
ReportStashed(id, segment, ec);
92-
} else {
92+
} else if (!ec) {
93+
// Throw away the value because it's no longer up-to-date even if no error occured
9394
storage_.MarkAsFree(segment);
9495
}
9596
}

0 commit comments

Comments
 (0)