diff options
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), |