Blame accountsservice-wtmp-io-improvements.patch

e33294
From 64b11314ea71b5e22edf4d968347489c5d5acd01 Mon Sep 17 00:00:00 2001
e33294
From: Ray Strode <rstrode@redhat.com>
e33294
Date: Thu, 9 May 2019 14:58:34 -0400
e33294
Subject: [PATCH] data: don't send change updates for login-history
e33294
e33294
The login-history property of user objects can be quite large.
e33294
If wtmp is changed frequently, that can lead to memory fragmentation
e33294
in clients.
e33294
e33294
Furthermore, most clients never check login-history, so it's
e33294
wasted memory and wasted cpu.
e33294
e33294
This commit disables change notification for that property.  If
e33294
a client really needs to get updates, they can manually refresh
e33294
their cache when appropriate.
e33294
---
e33294
 data/org.freedesktop.Accounts.User.xml | 1 +
e33294
 1 file changed, 1 insertion(+)
e33294
e33294
diff --git a/data/org.freedesktop.Accounts.User.xml b/data/org.freedesktop.Accounts.User.xml
e33294
index 8d3fe1c..3b839a3 100644
e33294
--- a/data/org.freedesktop.Accounts.User.xml
e33294
+++ b/data/org.freedesktop.Accounts.User.xml
e33294
@@ -812,6 +812,7 @@
e33294
   </property>
e33294
 
e33294
   <property name="LoginHistory" type="a(xxa{sv})" access="read">
e33294
+    <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="false"/>
e33294
     <doc:doc>
e33294
       <doc:description>
e33294
         <doc:para>
e33294
-- 
e33294
2.16.4
e33294