mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-12 15:23:11 -05:00
Move SLAB_SIZE def to slap.h
This commit is contained in:
parent
0cef026e98
commit
74db966ebb
3 changed files with 5 additions and 5 deletions
|
|
@ -976,12 +976,11 @@ connection_operation( void *ctx, void *arg_v )
|
|||
/* We can use Thread-Local storage for most mallocs. We can
|
||||
* also use TL for ber parsing, but not on Add or Modify.
|
||||
*/
|
||||
#define SLAB_SIZE 1048576
|
||||
#if 0
|
||||
memsiz = ber_len( op->o_ber ) * 64;
|
||||
if ( SLAB_SIZE > memsiz ) memsiz = SLAB_SIZE;
|
||||
if ( SLMALLOC_SLAB_SIZE > memsiz ) memsiz = SLMALLOC_SLAB_SIZE;
|
||||
#endif
|
||||
memsiz = SLAB_SIZE;
|
||||
memsiz = SLMALLOC_SLAB_SIZE;
|
||||
|
||||
memctx = sl_mem_create( memsiz, ctx );
|
||||
op->o_tmpmemctx = memctx;
|
||||
|
|
|
|||
|
|
@ -2292,6 +2292,8 @@ typedef int (SLAP_CTRL_PARSE_FN) LDAP_P((
|
|||
SlapReply *rs,
|
||||
LDAPControl *ctrl ));
|
||||
|
||||
#define SLMALLOC_SLAB_SIZE 1048576
|
||||
|
||||
LDAP_END_DECL
|
||||
|
||||
#include "proto-slap.h"
|
||||
|
|
|
|||
|
|
@ -817,8 +817,7 @@ do_syncrepl(
|
|||
conn.c_peer_name = slap_empty_bv;
|
||||
|
||||
/* set memory context */
|
||||
#define SLAB_SIZE 1048576
|
||||
op.o_tmpmemctx = sl_mem_create( SLAB_SIZE, ctx );
|
||||
op.o_tmpmemctx = sl_mem_create( SLMALLOC_SLAB_SIZE, ctx );
|
||||
op.o_tmpmfuncs = &sl_mfuncs;
|
||||
|
||||
op.o_dn = si->si_updatedn;
|
||||
|
|
|
|||
Loading…
Reference in a new issue