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
Simon
OpenLDAP
Commits
c70e2e08
Commit
c70e2e08
authored
May 25, 2020
by
Howard Chu
Browse files
ITS#9264 more for unique locking
parent
f3952d94
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/unique.c
View file @
c70e2e08
...
...
@@ -1121,8 +1121,10 @@ unique_add(
/* skip this domain-uri if it isn't involved */
if
(
!
ks
)
continue
;
if
(
domain
->
serial
&&
!
locked
)
if
(
domain
->
serial
&&
!
locked
)
{
ldap_pvt_thread_mutex_lock
(
&
private
->
serial_mutex
);
locked
=
1
;
}
/* terminating NUL */
ks
+=
sizeof
(
"(|)"
);
...
...
@@ -1259,8 +1261,10 @@ unique_modify(
/* skip this domain-uri if it isn't involved */
if
(
!
ks
)
continue
;
if
(
domain
->
serial
&&
!
locked
)
if
(
domain
->
serial
&&
!
locked
)
{
ldap_pvt_thread_mutex_lock
(
&
private
->
serial_mutex
);
locked
=
1
;
}
/* terminating NUL */
ks
+=
sizeof
(
"(|)"
);
...
...
@@ -1425,8 +1429,10 @@ unique_modrdn(
/* skip this domain if it isn't involved */
if
(
!
ks
)
continue
;
if
(
domain
->
serial
&&
!
locked
)
if
(
domain
->
serial
&&
!
locked
)
{
ldap_pvt_thread_mutex_lock
(
&
private
->
serial_mutex
);
locked
=
1
;
}
/* terminating NUL */
ks
+=
sizeof
(
"(|)"
);
...
...
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