couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [6/9] couch commit: updated refs/heads/HACK-benchmark-COUCHDB-3191-improve-couch-lru-performance to 4c4cebc
Date Mon, 17 Oct 2016 21:35:58 GMT
Fix validation recursion termination


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/6e52fe80
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/6e52fe80
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/6e52fe80

Branch: refs/heads/HACK-benchmark-COUCHDB-3191-improve-couch-lru-performance
Commit: 6e52fe80684bcfcaeba56ab8fc5da771f1e92d82
Parents: 0daf2dc
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Mon Oct 17 14:11:13 2016 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Mon Oct 17 14:11:13 2016 -0500

----------------------------------------------------------------------
 src/couch_lru.erl | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/6e52fe80/src/couch_lru.erl
----------------------------------------------------------------------
diff --git a/src/couch_lru.erl b/src/couch_lru.erl
index 3ecf0f6..c5c13e8 100644
--- a/src/couch_lru.erl
+++ b/src/couch_lru.erl
@@ -222,6 +222,9 @@ to_list(Lru, Ref) ->
     [DbName | to_list(Lru, Next)].
 
 
+validate(_Lru, undefined) ->
+    ok;
+
 validate(Lru, Ref) ->
     #lru{
         dbs = Dbs,


Mime
View raw message