From afcdbeebbff4b0c50ea26cdd16e178c0d1f24152 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Tue, 3 Oct 2023 12:58:16 +0000 Subject: [PATCH] mod_dav_fs: add DAVLockDBType directive. * modules/dav/fs/dbm.c (dav_dbm_open_direct): Take a dbmtype argument and use it to select the apr_dbm driver type. (dav_dbm_open): Continue to use the "default" propdb type to open the property databases. * modules/dav/fs/lock.c: Store and pass through the lockdb_type through. * modules/dav/fs/mod_dav_fs.c (dav_get_lockdb_path): Return the dbm type via an output argument. (dav_fs_cmd_davlockdbtype): New config directive. (dav_fs_merge_server_config): Merge the dbm type. (dav_fs_post_config): Set the default lockdb type. * modules/dav/fs/repos.h: Update prototypes as above; internal API only so no compat concerns. Github: closes #386 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1912718 13f79535-47bb-0310-9956-ffa450edef68 --- changes-entries/davlockdbtype.txt | 1 + docs/manual/mod/mod_dav_fs.xml | 26 ++++++++++++++++++++++---- modules/dav/fs/dbm.c | 22 +++++++++++++--------- modules/dav/fs/lock.c | 4 +++- modules/dav/fs/mod_dav_fs.c | 31 +++++++++++++++++++++++++++++-- modules/dav/fs/repos.h | 9 +++++---- 6 files changed, 73 insertions(+), 20 deletions(-) create mode 100644 changes-entries/davlockdbtype.txt diff --git a/changes-entries/davlockdbtype.txt b/changes-entries/davlockdbtype.txt new file mode 100644 index 00000000000..d83fd333745 --- /dev/null +++ b/changes-entries/davlockdbtype.txt @@ -0,0 +1 @@ + *) mod_dav_fs: Add DavLockDBType directive. [Joe Orton] diff --git a/docs/manual/mod/mod_dav_fs.xml b/docs/manual/mod/mod_dav_fs.xml index 547461c1d19..5c411b5b729 100644 --- a/docs/manual/mod/mod_dav_fs.xml +++ b/docs/manual/mod/mod_dav_fs.xml @@ -60,11 +60,12 @@

Use the DavLockDB directive to specify - the full path to the lock database, excluding an extension. If - the path is not absolute, it will be taken relative to ServerRoot. The implementation of - mod_dav_fs uses a SDBM database to track user - locks.

+ mod_dav_fs uses a database to track user + locks. The type of database file can be changed using + DavLockDBType.