Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
519e2b34
Commit
519e2b34
authored
Apr 14, 2012
by
Howard Chu
Browse files
Support double-buffering for threaded slapadd
parent
5bbfd85a
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/slapadd.c
View file @
519e2b34
...
...
@@ -331,6 +331,7 @@ slapadd( int argc, char **argv )
struct
berval
bvtext
;
ldap_pvt_thread_t
thr
;
ID
id
;
Entry
*
prev
=
NULL
;
int
ldifrc
;
int
rc
=
EXIT_SUCCESS
;
...
...
@@ -431,8 +432,11 @@ slapadd( int argc, char **argv )
"(line=%d): %s
\n
"
,
progname
,
erec
.
e
->
e_dn
,
erec
.
lineno
,
bvtext
.
bv_val
);
rc
=
EXIT_FAILURE
;
entry_free
(
erec
.
e
);
if
(
continuemode
)
continue
;
if
(
continuemode
)
{
if
(
prev
)
entry_free
(
prev
);
prev
=
erec
.
e
;
continue
;
}
break
;
}
if
(
verbose
)
...
...
@@ -444,7 +448,8 @@ slapadd( int argc, char **argv )
erec
.
e
->
e_dn
);
}
entry_free
(
erec
.
e
);
if
(
prev
)
entry_free
(
prev
);
prev
=
erec
.
e
;
}
if
(
slap_tool_thread_max
>
1
)
{
...
...
@@ -455,6 +460,7 @@ slapadd( int argc, char **argv )
ldap_pvt_thread_mutex_unlock
(
&
add_mutex
);
ldap_pvt_thread_join
(
thr
,
NULL
);
}
if
(
erec
.
e
)
entry_free
(
erec
.
e
);
if
(
ldifrc
<
0
)
rc
=
EXIT_FAILURE
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment