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
41d37a33
Commit
41d37a33
authored
19 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
ITS#3660 fix BDB verbose calls
parent
3189027d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
servers/slapd/back-bdb/error.c
+11
-0
11 additions, 0 deletions
servers/slapd/back-bdb/error.c
servers/slapd/back-bdb/init.c
+4
-0
4 additions, 0 deletions
servers/slapd/back-bdb/init.c
servers/slapd/back-bdb/proto-bdb.h
+2
-0
2 additions, 0 deletions
servers/slapd/back-bdb/proto-bdb.h
with
17 additions
and
0 deletions
servers/slapd/back-bdb/error.c
+
11
−
0
View file @
41d37a33
...
...
@@ -35,6 +35,17 @@ void bdb_errcall( const DB_ENV *env, const char *pfx, const char * msg )
Debug
(
LDAP_DEBUG_ANY
,
"bdb(%s): %s
\n
"
,
pfx
,
msg
,
0
);
}
#if DB_VERSION_FULL >= 0x04030000
void
bdb_msgcall
(
const
DB_ENV
*
env
,
const
char
*
msg
)
{
#ifdef HAVE_EBCDIC
if
(
msg
[
0
]
>
0x7f
)
__etoa
(
msg
);
#endif
Debug
(
LDAP_DEBUG_TRACE
,
"bdb: %s
\n
"
,
msg
,
0
,
0
);
}
#endif
#ifdef HAVE_EBCDIC
#undef db_strerror
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-bdb/init.c
+
4
−
0
View file @
41d37a33
...
...
@@ -115,7 +115,11 @@ bdb_do_recovery( BackendDB *be )
re_dbenv
->
set_errpfx
(
re_dbenv
,
be
->
be_suffix
[
0
].
bv_val
);
re_dbenv
->
set_errcall
(
re_dbenv
,
bdb_errcall
);
(
void
)
re_dbenv
->
set_verbose
(
re_dbenv
,
DB_VERB_RECOVERY
,
1
);
#if DB_VERSION_FULL < 0x04030000
(
void
)
re_dbenv
->
set_verbose
(
re_dbenv
,
DB_VERB_CHKPOINT
,
1
);
#else
re_dbenv
->
set_msgcall
(
re_dbenv
,
bdb_msgcall
);
#endif
flags
=
DB_CREATE
|
DB_INIT_LOCK
|
DB_INIT_LOG
|
DB_INIT_MPOOL
|
DB_INIT_TXN
|
DB_USE_ENVIRON
|
DB_RECOVER
;
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-bdb/proto-bdb.h
+
2
−
0
View file @
41d37a33
...
...
@@ -146,7 +146,9 @@ int bdb_fix_dn( Entry *e, int checkit );
#if DB_VERSION_FULL < 0x04030000
void
bdb_errcall
(
const
char
*
pfx
,
char
*
msg
);
#else
#define bdb_msgcall BDB_SYMBOL(msgcall)
void
bdb_errcall
(
const
DB_ENV
*
env
,
const
char
*
pfx
,
const
char
*
msg
);
void
bdb_msgcall
(
const
DB_ENV
*
env
,
const
char
*
msg
);
#endif
#ifdef HAVE_EBCDIC
...
...
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