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/05/21 02:38:41 UTC
[couchdb] branch improve-db-expiration-log created (now 44935ac)
This is an automated email from the ASF dual-hosted git repository.
jiangphcn pushed a change to branch improve-db-expiration-log
in repository https://gitbox.apache.org/repos/asf/couchdb.git.
at 44935ac Improve log of permanently deleting databases
This branch includes the following new commits:
new 44935ac Improve log of permanently deleting databases
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb] 01/01: Improve log of permanently deleting databases
Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jiangphcn pushed a commit to branch improve-db-expiration-log
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 44935aca8fdbf5f38027d6cb3bb11c678b3c9330
Author: jiangph <ji...@cn.ibm.com>
AuthorDate: Thu May 21 10:36:31 2020 +0800
Improve log of permanently deleting databases
---
src/fabric/src/fabric2_db_expiration.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/fabric/src/fabric2_db_expiration.erl b/src/fabric/src/fabric2_db_expiration.erl
index 3363d24..92f22e7 100644
--- a/src/fabric/src/fabric2_db_expiration.erl
+++ b/src/fabric/src/fabric2_db_expiration.erl
@@ -180,8 +180,8 @@ process_row(DbInfo) ->
Since = Now - Retention,
case Since >= timestamp_to_sec(TimeStamp) of
true ->
- couch_log:notice("Permanently deleting ~p database with"
- " timestamp ~p", [DbName, TimeStamp]),
+ couch_log:notice("Permanently deleting ~s database with"
+ " timestamp ~s", [DbName, TimeStamp]),
ok = fabric2_db:delete(DbName, [{deleted_at, TimeStamp}]);
false ->
ok