v0.34.0_4
This commit is contained in:
1 parent
f20c8da718
commit
5910e6e901
21 files changed
+377
-51
No files matched your search
Vendored
+4
@@ -58,6 +58,10 @@ impl DomainStats {
|
||||
fn record_reason(&self, reason: &'static str) {
|
||||
// Cache OFF is the highest-volume case; avoid reason map lookup and
|
||||
// any shared lock/allocator activity for its dashboard reason.
|
||||
if reason == "cache_disabled" {
|
||||
self.fast_reasons[0].fetch_add(1, Ordering::Relaxed);
|
||||
return;
|
||||
}
|
||||
if let Some(index) = FAST_REASONS.iter().position(|label| *label == reason) {
|
||||
self.fast_reasons[index].fetch_add(1, Ordering::Relaxed);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user