]> git.sur5r.net Git - openldap/commitdiff
#if out unnecessary code in prev commit
authorHoward Chu <hyc@openldap.org>
Wed, 3 Jan 2007 02:10:30 +0000 (02:10 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 3 Jan 2007 02:10:30 +0000 (02:10 +0000)
servers/slapd/entry.c

index 220d7a22f57bb0777d586fbeb457e23404bd246c..ca2296fee647ec0a99758ba07631d21fe0a8c777 100644 (file)
@@ -500,10 +500,12 @@ entry_prealloc( int num )
 
        if (!num) return 0;
 
+#if STRIDE_FACTOR > 1
        /* Round up to our stride factor */
        num += STRIDE_FACTOR-1;
        num /= STRIDE_FACTOR;
        num *= STRIDE_FACTOR;
+#endif
 
        s = ch_calloc( 1, sizeof(slap_list) + num * sizeof(Entry));
        s->next = entry_chunks;