Merge "logd: worst uid record watermark part deux" into mnc-dr-dev

This commit is contained in:
Mark Salyzyn 2015-09-01 20:11:00 +00:00 committed by Android (Google) Code Review
commit bd44f59f5b

View file

@ -467,7 +467,11 @@ void LogBuffer::prune(log_id_t id, unsigned long pruneRows, uid_t caller_uid) {
// unmerged drop message
if (dropped) {
last.add(e);
mLastWorstUid[id][e->getUid()] = it;
if ((e->getUid() == worst)
|| (mLastWorstUid[id].find(e->getUid())
== mLastWorstUid[id].end())) {
mLastWorstUid[id][e->getUid()] = it;
}
++it;
continue;
}