From 25a9a1768d2e3587cc68b76a0a5df1e42a2c89ab Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 24 Jan 2012 22:17:46 +0100 Subject: SYSDB: index sudoUser Most of the the searches in the Sudo responder include the sudoUser attribute. Indexing it will make the responder faster. --- src/db/sysdb.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/db/sysdb.c') diff --git a/src/db/sysdb.c b/src/db/sysdb.c index 6bd787f7e..a7f65a332 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -962,6 +962,13 @@ int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx, } } + if (strcmp(version, SYSDB_VERSION_0_9) == 0) { + ret = sysdb_upgrade_09(sysdb, &version); + if (ret != EOK) { + goto done; + } + } + /* The version should now match SYSDB_VERSION. * If not, it means we didn't match any of the * known older versions. The DB might be -- cgit