You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ji...@apache.org on 2020/04/09 06:04:41 UTC

[couchdb] 01/01: fake change

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

jiangphcn pushed a commit to branch set-softdelete-default
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 05fc196ef2961737d1a01448716a1f9a96970e86
Author: jiangph <ji...@cn.ibm.com>
AuthorDate: Thu Apr 9 13:57:17 2020 +0800

    fake change
---
 src/fabric/src/fabric2_fdb.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/fabric/src/fabric2_fdb.erl b/src/fabric/src/fabric2_fdb.erl
index d96c3ae..5d1a892 100644
--- a/src/fabric/src/fabric2_fdb.erl
+++ b/src/fabric/src/fabric2_fdb.erl
@@ -345,8 +345,8 @@ reopen(#{} = OldDb) ->
 delete(#{} = Db) ->
     DoRecovery = fabric2_util:do_recovery(),
     case DoRecovery of
-        true -> soft_delete_db(Db);
-        false -> hard_delete_db(Db)
+        false -> soft_delete_db(Db);
+        true -> hard_delete_db(Db)
     end.