From 6642637ef37258686c34f5b630d5fcba99bea3ee Mon Sep 17 00:00:00 2001 From: Ondrej Kos Date: Thu, 8 Nov 2012 14:34:36 +0100 Subject: Display more information on DB version crash https://fedorahosted.org/sssd/ticket/1589 Added check for determining, whether database version is higher or lower than expected. To distinguish it from other errors it uses following retun values (further used for appropriate error message): EMEDIUMTYPE for lower version than expected EUCLEAN for higher version than expected When SSSD or one of it's tools fails on DB version mismatch, new error message is showed suggesting how to proceed. --- src/monitor/monitor.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/monitor/monitor.c') diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index 1fbbcb9ce..7f7bbd0fa 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -2185,6 +2185,7 @@ int monitor_process_init(struct mt_ctx *ctx, } ret = sysdb_init(tmp_ctx, ctx->cdb, NULL, true, &db_list); if (ret != EOK) { + SYSDB_VERSION_ERROR_DAEMON(ret); return ret; } talloc_zfree(tmp_ctx); -- cgit