Skip to content

Commit b33ecff

Browse files
nephrosnephros
authored andcommitted
Hotcache: check for active filter in startReadingLocalServer
1 parent 82c3901 commit b33ecff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/patchmanager-daemon/patchmanagerobject.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,7 @@ void PatchManagerObject::startReadingLocalServer()
18731873
payload = request;
18741874
if (
18751875
(!m_failed) // return unaltered for failed
1876-
&& (!m_filter.contains(request)) // it is not in the list of unpatched files
1876+
&& (!m_filter.active() || !m_filter.contains(request)) // filter inactive or not in the list of unpatched files
18771877
&& (Q_UNLIKELY(QFileInfo::exists(fakePath))) // file is patched
18781878
)
18791879
{
@@ -3027,6 +3027,7 @@ PatchManagerFilter::PatchManagerFilter(QObject *parent, int maxCost )
30273027
{
30283028
}
30293029

3030+
/* initialize the static members */
30303031
/* only use relatively stable sonames here. No symlinks! */
30313032
const QStringList PatchManagerFilter::libList = QStringList({
30323033
"/usr/lib64/libtls-padding.so",

src/bin/patchmanager-daemon/patchmanagerobject.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ class PatchManagerFilter : public QObject, public QCache<QString, QObject>
117117
bool m_active;
118118
unsigned int m_hits = 0;
119119
unsigned int m_misses = 0;
120-
121120
};
122121

123122
class PatchManagerObject : public QObject, public QDBusContext

0 commit comments

Comments
 (0)