am 0c3177c5: am 64393789: Merge "logd: worst uid record watermark part deux"

* commit '0c3177c5b13b0826068f922f26f9b1eacbc0fac0':
  logd: worst uid record watermark part deux
This commit is contained in:
Mark Salyzyn 2015-08-26 18:02:40 +00:00 committed by Android Git Automerger
commit 86c8be0443
1 changed files with 5 additions and 1 deletions

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;
}