diff options
author | Petr Mrázek <peterix@gmail.com> | 2010-07-14 02:59:12 +0200 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2011-04-11 13:24:22 -0400 |
commit | f664666137fb85c19b636a2e0bfd4de0e7d59b56 (patch) | |
tree | 537487b21cccb6bb3c92e933f7fcfbadb80e709e | |
parent | 28e485cac449c8eb37c21eecb95f5fa125def9d4 (diff) |
Bug 29051 – Configuration reload on every querypolkit-0-96
Set has_data to true after the data is loaded to prevent excessive
reloading of config files.
Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r-- | src/polkitbackend/polkitbackendconfigsource.c | 1 | ||||
-rw-r--r-- | src/polkitbackend/polkitbackendlocalauthorizationstore.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/polkitbackend/polkitbackendconfigsource.c b/src/polkitbackend/polkitbackendconfigsource.c index 224d0d0..465da96 100644 --- a/src/polkitbackend/polkitbackendconfigsource.c +++ b/src/polkitbackend/polkitbackendconfigsource.c @@ -386,6 +386,7 @@ polkit_backend_config_source_ensure (PolkitBackendConfigSource *source) } source->priv->key_files = g_list_reverse (source->priv->key_files); + source->priv->has_data = TRUE; out: g_list_foreach (files, (GFunc) g_object_unref, NULL); diff --git a/src/polkitbackend/polkitbackendlocalauthorizationstore.c b/src/polkitbackend/polkitbackendlocalauthorizationstore.c index 5d5dc14..b959269 100644 --- a/src/polkitbackend/polkitbackendlocalauthorizationstore.c +++ b/src/polkitbackend/polkitbackendlocalauthorizationstore.c @@ -641,6 +641,8 @@ polkit_backend_local_authorization_store_ensure (PolkitBackendLocalAuthorization g_free (filename); } + store->priv->has_data = TRUE; + out: g_list_foreach (files, (GFunc) g_object_unref, NULL); g_list_free (files); |