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

Commit 87265fd5 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

am: ef53957a

Change-Id: I50d342511a3e2b3762c90c1f8e7e912ac21012fd
parents 7fb7389b ef53957a
Loading
Loading
Loading
Loading
+8 −3
Original line number Original line Diff line number Diff line
@@ -1144,6 +1144,10 @@ log_time LogBuffer::flushTo(SocketClient* reader, const log_time& start,
            continue;
            continue;
        }
        }


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

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


        // range locking in LastLogTimes looks after us
        // 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 (max == element->FLUSH_ERROR) {
        if (next > max) max = next;
            return max;
        }


        skip = maxSkip;
        skip = maxSkip;
        rdlock();
        rdlock();