Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
4a658ee5
Commit
4a658ee5
authored
22 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
more improvements ...
parent
95b11539
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servers/slapd/tools/slapcommon.c
+8
-8
8 additions, 8 deletions
servers/slapd/tools/slapcommon.c
with
8 additions
and
8 deletions
servers/slapd/tools/slapcommon.c
+
8
−
8
View file @
4a658ee5
...
...
@@ -255,6 +255,11 @@ slap_tool_init(
}
}
else
if
(
dbnum
==
-
1
)
{
if
(
nbackends
<=
0
)
{
fprintf
(
stderr
,
"No available databases
\n
"
);
exit
(
EXIT_FAILURE
);
}
be
=
&
backends
[
dbnum
=
0
];
/* If just doing the first by default and it is a
* glue subordinate, find the master.
...
...
@@ -268,12 +273,7 @@ slap_tool_init(
}
if
(
dbnum
<
0
)
{
fprintf
(
stderr
,
"No available database
\n
"
);
exit
(
EXIT_FAILURE
);
}
if
(
dbnum
>
(
nbackends
-
1
)
)
{
if
(
dbnum
>=
nbackends
)
{
fprintf
(
stderr
,
"Available database(s) "
"do not allow %s
\n
"
,
name
);
exit
(
EXIT_FAILURE
);
...
...
@@ -283,11 +283,11 @@ slap_tool_init(
#ifdef NEW_LOGGING
LDAP_LOG
(
BACKEND
,
ERR
,
"The first database does not allow %s; using the first available one (%d)
\n
"
,
name
,
(
int
)(
be
-
&
backends
[
0
])
+
1
,
0
);
name
,
dbnum
+
1
,
0
);
#else
Debug
(
LDAP_DEBUG_ANY
,
"The first database does not allow %s; using the first available one (%d)
\n
"
,
name
,
(
int
)(
be
-
&
backends
[
0
])
+
1
,
0
);
name
,
dbnum
+
1
,
0
);
#endif
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment