logd: whitelist should not preserve expire messages

Change-Id: I56275c73191b96aa21e7b4049d401e1f44211f9b
This commit is contained in:
Mark Salyzyn 2015-05-21 12:50:31 -07:00
parent 02b29c49d4
commit c5bf3b8304
1 changed files with 1 additions and 1 deletions

View File

@ -526,7 +526,7 @@ void LogBuffer::prune(log_id_t id, unsigned long pruneRows, uid_t caller_uid) {
break;
}
if (hasWhitelist && mPrune.nice(e)) { // WhiteListed
if (hasWhitelist && !e->getDropped() && mPrune.nice(e)) { // WhiteListed
whitelist = true;
it++;
continue;