From 1676f9b5b6810403496c441a5545c9b361662f34 Mon Sep 17 00:00:00 2001 From: Noriko Hosoi Date: Fri, 7 Sep 2007 19:08:45 +0000 Subject: Resolves: #236256 Summary: verify-db.pl (db_verify) does not work on a little endian machine (comment #1-#4) Description: 1) introducing dbverify mode to ns-slapd. 2) providing new script dbverify to call "ns-slapd dbverify" 3) fixing verify-db.pl to call dbverify instead of db_verify from BDB --- ldap/servers/slapd/back-ldbm/dblayer.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ldap/servers/slapd/back-ldbm/dblayer.c') diff --git a/ldap/servers/slapd/back-ldbm/dblayer.c b/ldap/servers/slapd/back-ldbm/dblayer.c index f0631468..287b64c2 100644 --- a/ldap/servers/slapd/back-ldbm/dblayer.c +++ b/ldap/servers/slapd/back-ldbm/dblayer.c @@ -2522,8 +2522,11 @@ int dblayer_post_close(struct ldbminfo *li, int dbmode) } } #endif - commit_good_database(priv); - + if (0 == return_value + && !((DBLAYER_ARCHIVE_MODE|DBLAYER_EXPORT_MODE) & dbmode) + && !priv->dblayer_bad_stuff_happened) { + commit_good_database(priv); + } return return_value; } -- cgit