diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2009-11-21 13:43:43 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2009-11-21 13:43:43 +0000 |
commit | aef9dbd3a6cbb85085023d3c8565740e09fd6a77 (patch) | |
tree | 7ee342a14f36f7a21b2249b832c9700f082d55b6 /src/couchdb/couch_rep.erl | |
parent | 9c97bb531ed9b5d6fc18fcef87a6742514e984d5 (diff) |
code improvements from tidier. Patch by Kostis Sagonas. COUCHDB-570
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@882903 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_rep.erl')
-rw-r--r-- | src/couchdb/couch_rep.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index 23a44069..24b1557f 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -308,15 +308,15 @@ compare_rep_history([{S}|SourceRest], [{T}|TargetRest]=Target) -> end end. -close_db(#http_db{})-> +close_db(#http_db{}) -> ok; -close_db(Db)-> +close_db(Db) -> couch_db:close(Db). -dbname(#http_db{} = Db) -> - Db#http_db.url; -dbname(Db) -> - Db#db.name. +dbname(#http_db{url = Url}) -> + Url; +dbname(#db{name = Name}) -> + Name. dbinfo(#http_db{} = Db) -> {DbProps} = couch_rep_httpc:request(Db), |