45 lines
1.4 KiB
Diff
45 lines
1.4 KiB
Diff
From 39d91c4b86fc2ad7e35f8bebd510dff984e8ba56 Mon Sep 17 00:00:00 2001
|
|
From: Viktor Ashirov <vashirov@redhat.com>
|
|
Date: Wed, 5 Mar 2025 23:46:02 +0100
|
|
Subject: [PATCH] Issue 6090 - dbscan: use bdb by default
|
|
|
|
Bug Description:
|
|
dbscan started to use mdb by default on versions where it's not the
|
|
default.
|
|
|
|
Fix Description:
|
|
Use bdb by default on 2.x versions.
|
|
|
|
Relates: https://github.com/389ds/389-ds-base/issues/6090
|
|
|
|
Reviewed by: @mreynolds389 (Thanks!)
|
|
---
|
|
ldap/servers/slapd/tools/dbscan.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/ldap/servers/slapd/tools/dbscan.c b/ldap/servers/slapd/tools/dbscan.c
|
|
index 12edf7c5b..9260c1532 100644
|
|
--- a/ldap/servers/slapd/tools/dbscan.c
|
|
+++ b/ldap/servers/slapd/tools/dbscan.c
|
|
@@ -1280,7 +1280,7 @@ removedb(const char *dbimpl_name, const char *filename)
|
|
|
|
if (!filename) {
|
|
printf("Error: -f option is missing.\n"
|
|
- "Usage: dbscan -D mdb -d -f <db_home_dir>/<backend_name>/<db_name>\n");
|
|
+ "Usage: dbscan -D bdb -d -f <db_home_dir>/<backend_name>/<db_name>\n");
|
|
return 1;
|
|
}
|
|
|
|
@@ -1314,7 +1314,7 @@ main(int argc, char **argv)
|
|
char *find_key = NULL;
|
|
uint32_t entry_id = 0xffffffff;
|
|
char *defdbimpl = getenv("NSSLAPD_DB_LIB");
|
|
- char *dbimpl_name = (char*) "mdb";
|
|
+ char *dbimpl_name = (char*) "bdb";
|
|
int longopt_idx = 0;
|
|
int c = 0;
|
|
char optstring[2*COUNTOF(options)+1] = {0};
|
|
--
|
|
2.48.1
|
|
|