diff options
| author | 2022-12-01 13:04:55 +0000 | |
|---|---|---|
| committer | 2022-12-02 10:19:01 +0000 | |
| commit | 258176bdcce8d35ad6c4573259cfe618576859c6 (patch) | |
| tree | 7387b150e6bc8800725cc6cb0a09efdd37ed3c52 | |
| parent | 9f25e02fa3c911985f934c0ce846d7bcb6b8d068 (diff) | |
Change DropboxRateLimiter to rate limit proto tombstones and regular
tombstones separately.
Bug: 255249203
Test: atest ErrorsTest
Change-Id: I258657233ed643615cdd4b7ebdcf6447b1a964af
| -rw-r--r-- | services/core/java/com/android/server/BootReceiver.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/BootReceiver.java b/services/core/java/com/android/server/BootReceiver.java index 85f1e0a36ae9..7e6350f25126 100644 --- a/services/core/java/com/android/server/BootReceiver.java +++ b/services/core/java/com/android/server/BootReceiver.java @@ -341,7 +341,8 @@ public class BootReceiver extends BroadcastReceiver { // non-proto tombstones, even though proto tombstones do not support including the counter // of events dropped since rate limiting activated yet. DropboxRateLimiter.RateLimitResult rateLimitResult = - sDropboxRateLimiter.shouldRateLimit(TAG_TOMBSTONE, processName); + sDropboxRateLimiter.shouldRateLimit( + proto ? TAG_TOMBSTONE_PROTO : TAG_TOMBSTONE, processName); if (rateLimitResult.shouldRateLimit()) return; HashMap<String, Long> timestamps = readTimestamps(); |