diff options
author | Ken Raeburn <raeburn@mit.edu> | 2006-06-30 03:51:48 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2006-06-30 03:51:48 +0000 |
commit | 2316e1c4159552a897ac267e04ae0b84f08fa8b5 (patch) | |
tree | 7a527c1b0988ce582f4a4ef7f42040394f232564 /src/kadmin | |
parent | 3f2442bbf3cc7625484da7aaaa57d5d3c7cf6db6 (diff) | |
download | krb5-2316e1c4159552a897ac267e04ae0b84f08fa8b5.tar.gz krb5-2316e1c4159552a897ac267e04ae0b84f08fa8b5.tar.xz krb5-2316e1c4159552a897ac267e04ae0b84f08fa8b5.zip |
New kdb backend operation promote_db, makes a temporary database become the
live database. New function krb5_db_promote invokes it.
ticket: 3964
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18282 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin')
-rw-r--r-- | src/kadmin/dbutil/dump.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/kadmin/dbutil/dump.c b/src/kadmin/dbutil/dump.c index f0d277c12..f491ae70f 100644 --- a/src/kadmin/dbutil/dump.c +++ b/src/kadmin/dbutil/dump.c @@ -2224,7 +2224,8 @@ load_db(argc, argv) /* * Cons up params for the new databases. If we are not in update - * mode, we dont create tmp file and then move it to final place. As it is dependent on DB type, this is not done + * mode, we create an alternate database and then promote it to + * be the live db. */ newparams = global_params; if (! update) { @@ -2238,6 +2239,11 @@ load_db(argc, argv) exit_status++; return; } + + if (!add_db_arg("temporary")) { + com_err(progname, ENOMEM, "computing parameters for database"); + exit(1); + } } /* |