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:42 UTC
[couchdb] 01/01: Improve log of permanently deleting databases
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