From: Howard Chu Date: Mon, 24 Jan 2005 01:37:09 +0000 (+0000) Subject: Add '-q' "quick" option and SLAP_TOOL_QUICK def for slapadd to run X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~274 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fe03b5a8bbcb24c8e39b039862c746afd7d96bd2;p=openldap Add '-q' "quick" option and SLAP_TOOL_QUICK def for slapadd to run with fewer integrity checks. (may also change slapindex later.) --- diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 5cc6f3274a..79d3a38c13 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -1389,6 +1389,7 @@ LDAP_SLAPD_V (int) slapMode; #define SLAP_TRUNCATE_MODE 0x0100 #define SLAP_TOOL_READMAIN 0x0200 #define SLAP_TOOL_READONLY 0x0400 +#define SLAP_TOOL_QUICK 0x0800 struct slap_replica_info { char *ri_host; /* supersedes be_replica */ diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index 1812ede6e3..c768f52f3e 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -127,7 +127,7 @@ slap_tool_init( switch( tool ) { case SLAPADD: - options = "b:cd:f:l:n:tuvw"; + options = "b:cd:f:l:n:qtuvw"; break; case SLAPCAT: @@ -204,6 +204,10 @@ slap_tool_init( dbnum = atoi( optarg ) - 1; break; + case 'q': /* turn on quick */ + mode |= SLAP_TOOL_QUICK; + break; + case 'R': realm = optarg; break;