diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-07-10 15:47:33 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-12 01:24:14 -0400 |
commit | 15820b8ec6aa24fe0283879de85cebec17686868 (patch) | |
tree | d4295060e2eda59ac6987bf63631f6dd083c23f6 | |
parent | 5f4f2cf10dfb7e7d27c3207103a2c2e630880af0 (diff) |
remove couch_api module
-rw-r--r-- | src/mem3_sync.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mem3_sync.erl b/src/mem3_sync.erl index 140675f7..d3b3ea51 100644 --- a/src/mem3_sync.erl +++ b/src/mem3_sync.erl @@ -132,15 +132,15 @@ start_push_replication(DbName, Node) -> link(Pid), Pid; {db_not_found, _Msg} -> - case couch_api:open_db(DbName, []) of + case couch_db:open(DbName, []) of {ok, Db} -> % source exists, let's (re)create the target - couch_api:close_db(Db), + couch_db:close(Db), case rpc:call(Node, couch_api, create_db, [DbName, []]) of {ok, Target} -> ?LOG_INFO("~p successfully created ~s on ~p", [?MODULE, DbName, Node]), - couch_api:close_db(Target), + couch_db:close(Target), start_push_replication(DbName, Node); file_exists -> start_push_replication(DbName, Node); |