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
28af130e
Commit
28af130e
authored
20 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
unifdef BDB_SUBDIRS, was never used
parent
a6f8cd07
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
servers/slapd/back-bdb/back-bdb.h
+0
-6
0 additions, 6 deletions
servers/slapd/back-bdb/back-bdb.h
servers/slapd/back-bdb/init.c
+0
-57
0 additions, 57 deletions
servers/slapd/back-bdb/init.c
with
0 additions
and
63 deletions
servers/slapd/back-bdb/back-bdb.h
+
0
−
6
View file @
28af130e
...
...
@@ -42,12 +42,6 @@ LDAP_BEGIN_DECL
#define BDB_MAX_ADD_LOOP 30
#ifdef BDB_SUBDIRS
#define BDB_TMP_SUBDIR "tmp"
#define BDB_LG_SUBDIR "log"
#define BDB_DATA_SUBDIR "data"
#endif
#define BDB_SUFFIX ".bdb"
#define BDB_ID2ENTRY 0
#define BDB_DN2ID 1
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-bdb/init.c
+
0
−
57
View file @
28af130e
...
...
@@ -171,63 +171,6 @@ bdb_db_open( BackendDB *be )
bdb
->
bi_idl_cache_size
=
0
;
}
#ifdef BDB_SUBDIRS
{
char
dir
[
MAXPATHLEN
],
*
ptr
;
if
(
bdb
->
bi_dbenv_home
[
0
]
==
'.'
)
{
/* If home is a relative path, relative subdirs
* are just concat'd by BDB. We don't want the
* path to be concat'd twice, e.g.
* ./test-db/./test-db/tmp
*/
ptr
=
dir
;
}
else
{
ptr
=
lutil_strcopy
(
dir
,
bdb
->
bi_dbenv_home
);
*
ptr
++
=
LDAP_DIRSEP
[
0
];
#ifdef HAVE_EBCDIC
__atoe
(
dir
);
#endif
}
strcpy
(
ptr
,
BDB_TMP_SUBDIR
);
#ifdef HAVE_EBCDIC
__atoe
(
ptr
);
#endif
rc
=
bdb
->
bi_dbenv
->
set_tmp_dir
(
bdb
->
bi_dbenv
,
dir
);
if
(
rc
!=
0
)
{
Debug
(
LDAP_DEBUG_ANY
,
"bdb_db_open: set_tmp_dir(%s) failed: %s (%d)
\n
"
,
dir
,
db_strerror
(
rc
),
rc
);
return
rc
;
}
strcpy
(
ptr
,
BDB_LG_SUBDIR
);
#ifdef HAVE_EBCDIC
__atoe
(
ptr
);
#endif
rc
=
bdb
->
bi_dbenv
->
set_lg_dir
(
bdb
->
bi_dbenv
,
dir
);
if
(
rc
!=
0
)
{
Debug
(
LDAP_DEBUG_ANY
,
"bdb_db_open: set_lg_dir(%s) failed: %s (%d)
\n
"
,
dir
,
db_strerror
(
rc
),
rc
);
return
rc
;
}
strcpy
(
ptr
,
BDB_DATA_SUBDIR
);
#ifdef HAVE_EBCDIC
__atoe
(
ptr
);
#endif
rc
=
bdb
->
bi_dbenv
->
set_data_dir
(
bdb
->
bi_dbenv
,
dir
);
if
(
rc
!=
0
)
{
Debug
(
LDAP_DEBUG_ANY
,
"bdb_db_open: set_data_dir(%s) failed: %s (%d)
\n
"
,
dir
,
db_strerror
(
rc
),
rc
);
return
rc
;
}
}
#endif
if
(
bdb
->
bi_dbenv_xflags
!=
0
)
{
rc
=
bdb
->
bi_dbenv
->
set_flags
(
bdb
->
bi_dbenv
,
bdb
->
bi_dbenv_xflags
,
1
);
...
...
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