summaryrefslogtreecommitdiff
path: root/server/db
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-12-10 15:31:41 -0500
committerStephen Gallagher <sgallagh@redhat.com>2009-12-10 17:20:26 -0500
commit13d2c831bc3a1eeeb4cc1ebec14ccd8acc3e2f37 (patch)
treeb5d0c263f2b646131feb72b2b884b57d40a31ef8 /server/db
parentefb45895084f706cb8a647f5ed32d074caeffcde (diff)
downloadsssd-13d2c831bc3a1eeeb4cc1ebec14ccd8acc3e2f37.tar.gz
sssd-13d2c831bc3a1eeeb4cc1ebec14ccd8acc3e2f37.tar.bz2
sssd-13d2c831bc3a1eeeb4cc1ebec14ccd8acc3e2f37.zip
Handle the special 02 upgrade case for 04->05
Diffstat (limited to 'server/db')
-rw-r--r--server/db/sysdb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/db/sysdb.c b/server/db/sysdb.c
index 7325f112..a87b5c56 100644
--- a/server/db/sysdb.c
+++ b/server/db/sysdb.c
@@ -1775,6 +1775,13 @@ int sysdb_init(TALLOC_CTX *mem_ctx,
talloc_zfree(ctx_list);
return ret;
};
+ ret = sysdb_upgrade_04(ctx, &version);
+ if (ret != EOK) {
+ DEBUG(0, ("FATAL: Upgrade from db version %s failed!\n",
+ SYSDB_VERSION_0_4));
+ talloc_zfree(ctx_list);
+ return ret;
+ };
}
*_ctx_list = ctx_list;