This is an automated email from the ASF dual-hosted git repository.

jiahuili430 pushed a commit to branch fix-config-options
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit d0b86bc2e343b04af8a5119914362fdddaa5e8c2
Author: Jiahui Li <[email protected]>
AuthorDate: Thu Aug 28 10:37:10 2025 -0500

    [couchdb]: Add `delete_after_rename = true` option
    
    - Update comments for `enable_database_recovery = false`.
    - Add `delete_after_rename = true` option:
      - No ops when `enable_database_recovery = true`.
      - If `true`, delete the database shard files from the `data` directory.
      - If `false`, rename the database shard files and move them to the 
`.delete` directory.
---
 rel/overlay/etc/default.ini | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini
index b0be31ec8..be5077888 100644
--- a/rel/overlay/etc/default.ini
+++ b/rel/overlay/etc/default.ini
@@ -71,11 +71,18 @@ view_index_dir = {{view_index_dir}}
 ;default_engine = couch
 
 ; Enable this to only "soft-delete" databases when DELETE /{db} requests are
-; made. This will place a .recovery directory in your data directory and
-; move deleted databases/shards there instead. You can then manually delete
-; these files later, as desired.
+; made. This will add `.deleted.couch` extension to the database shard files
+; in the data directory. You can then manually delete these files later, as
+; desired.
 ;enable_database_recovery = false
 
+; Applies only when `enable_database_recovery = false`.
+; When DELETE /{db} requests are made:
+; - If `true`, delete the database shard files from the `data` directory.
+; - If `false`, rename the database shard files and move them to the `.delete`
+; directory.
+;delete_after_rename = true
+
 ; Set the maximum size allowed for a partition. This helps users avoid
 ; inadvertently abusing partitions resulting in hot shards. The default
 ; is 10GiB. A value of 0 or less will disable partition size checks.

Reply via email to