[Pkg-openldap-devel] [openldap] 02/17: * debian/slapd.postinst: don't dump and reload directories unless we know we're upgrading from an incompatible version! Closes: #304840.

Timo Aaltonen tjaalton-guest at alioth.debian.org
Thu Oct 10 05:35:30 UTC 2013


This is an automated email from the git hooks/post-receive script.

tjaalton-guest pushed a commit to annotated tag 2.2.23-3
in repository openldap.

commit 9445b17c9117ec8be0f59a4eb174c3f4669ad807
Author: Steve Langasek <vorlon at debian.org>
Date:   Sun Apr 17 01:53:06 2005 +0000

      * debian/slapd.postinst: don't dump and reload directories unless we
        know we're upgrading from an incompatible version!  Closes: #304840.
---
 debian/changelog      |    2 ++
 debian/slapd.postinst |    8 +++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c9f2cd3..7454845 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ openldap2.2 (2.2.23-3) unstable; urgency=low
     libldap_r library ends up with dangling unversioned reference to
     pthread_create() which gets resolved to a wrong version that causes
     segfaults on 64-bit platforms.  Closes: #304549.
+  * debian/slapd.postinst: don't dump and reload directories unless we
+    know we're upgrading from an incompatible version!  Closes: #304840.
 
  -- Steve Langasek <vorlon at debian.org>  Sat, 16 Apr 2005 01:45:55 -0700
 
diff --git a/debian/slapd.postinst b/debian/slapd.postinst
index d2f6c85..198a9f6 100644
--- a/debian/slapd.postinst
+++ b/debian/slapd.postinst
@@ -40,9 +40,11 @@ update_access_config_directives
 # }}}
 
 
-# During upgrading we have to load the old data
-move_incompatible_databases_away
-load_databases
+if database_format_changed; then
+	# During upgrading we have to load the old data
+	move_incompatible_databases_away
+	load_databases
+fi
 
 db_stop || true
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openldap/openldap.git



More information about the Pkg-openldap-devel mailing list