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 2018/06/20 10:03:26 UTC
[couchdb] branch COUCHDB-3326-clustered-purge-pr5-implementation
updated: Use CheckFun/1
This is an automated email from the ASF dual-hosted git repository.
jiangphcn pushed a commit to branch COUCHDB-3326-clustered-purge-pr5-implementation
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/COUCHDB-3326-clustered-purge-pr5-implementation by this push:
new 66c0a8b Use CheckFun/1
66c0a8b is described below
commit 66c0a8bf248af7299fd8203664e9bc773e42e40a
Author: jiangphcn <ji...@cn.ibm.com>
AuthorDate: Wed Jun 20 18:02:01 2018 +0800
Use CheckFun/1
COUCHDB-3326
---
src/couch/src/couch_db.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/couch/src/couch_db.erl b/src/couch/src/couch_db.erl
index e7b5328..2645ea2 100644
--- a/src/couch/src/couch_db.erl
+++ b/src/couch/src/couch_db.erl
@@ -476,7 +476,7 @@ purge_client_exists(DbName, DocId, Props) ->
try
CheckFun = get_purge_client_fun(DocId, Props),
- Exists = CheckFun(DbName, DocId, Props),
+ Exists = CheckFun(Props),
if not Exists -> ok; true ->
Updated = couch_util:get_value(<<"updated_on">>, Props),
if is_integer(Updated) and Updated > LagThreshold -> ok; true ->