]> git.sur5r.net Git - openldap/commitdiff
Add '-q' "quick" option and SLAP_TOOL_QUICK def for slapadd to run
authorHoward Chu <hyc@openldap.org>
Mon, 24 Jan 2005 01:37:09 +0000 (01:37 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 24 Jan 2005 01:37:09 +0000 (01:37 +0000)
with fewer integrity checks. (may also change slapindex later.)

servers/slapd/slap.h
servers/slapd/slapcommon.c

index 5cc6f3274ad3497936d451c5e6f22539d40e6b32..79d3a38c1302db62b3bfab3b279f4643aac095b4 100644 (file)
@@ -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 */
index 1812ede6e37f45f13be772ba0bcf4849ac598654..c768f52f3ec7463c6dc81de01211219a024dbf48 100644 (file)
@@ -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;