Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef53957a authored by Mark Salyzyn's avatar Mark Salyzyn Committed by android-build-merger
Browse files

Merge "Revert "logd: remove start filtration from flushTo"" am: 8cfd2971

am: f111b04f

Change-Id: Iec53f8ef86ca9edb021f279ef0eeaff0d0a2a26c
parents 98475736 f111b04f
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -1142,6 +1142,10 @@ log_time LogBuffer::flushTo(SocketClient* reader, const log_time& start,
            continue;
        }

        if (element->getRealTime() <= start) {
            continue;
        }

        // NB: calling out to another object with wrlock() held (safe)
        if (filter) {
            int ret = (*filter)(element, arg);
@@ -1168,10 +1172,11 @@ log_time LogBuffer::flushTo(SocketClient* reader, const log_time& start,
        unlock();

        // range locking in LastLogTimes looks after us
        log_time next = element->flushTo(reader, this, privileged, sameTid);
        max = element->flushTo(reader, this, privileged, sameTid);

        if (next == element->FLUSH_ERROR) return next;
        if (next > max) max = next;
        if (max == element->FLUSH_ERROR) {
            return max;
        }

        skip = maxSkip;
        rdlock();