summaryrefslogtreecommitdiffstats
path: root/src/monitor
diff options
context:
space:
mode:
authorOndrej Kos <okos@redhat.com>2012-11-08 14:34:36 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-11-19 13:39:52 +0100
commit3e454b5de596f2e4d1b4d9df4cc33aeec7a5af5f (patch)
treee1344cbc38b25555a616b52e31fc6d784915e423 /src/monitor
parent28556a5a26eefb496ab1ffd6fbdacec336f45d20 (diff)
downloadsssd-3e454b5de596f2e4d1b4d9df4cc33aeec7a5af5f.tar.gz
sssd-3e454b5de596f2e4d1b4d9df4cc33aeec7a5af5f.tar.xz
sssd-3e454b5de596f2e4d1b4d9df4cc33aeec7a5af5f.zip
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.
Diffstat (limited to 'src/monitor')
-rw-r--r--src/monitor/monitor.c1
1 files changed, 1 insertions, 0 deletions
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);