summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-11-18 11:54:05 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-11-18 11:54:05 +0000
commit46fc40a196a65f9bcded818f9a111edff0ec9576 (patch)
treef5c2dedd776ddc98dd0d81988b9e9877863d2ab3
parentcd0468cf3767a8854e50ce0741692883b21cfaed (diff)
Replicator DB: added one more useful log message.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1036425 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/couchdb/couch_rep_db_listener.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/couchdb/couch_rep_db_listener.erl b/src/couchdb/couch_rep_db_listener.erl
index 51b3bf68..e21aafd3 100644
--- a/src/couchdb/couch_rep_db_listener.erl
+++ b/src/couchdb/couch_rep_db_listener.erl
@@ -228,10 +228,12 @@ start_replication({RepProps} = RepDoc, {Base, Ext} = RepId, UserCtx) ->
maybe_stop_replication({RepProps}) ->
DocId = couch_util:get_value(<<"_id">>, RepProps),
case ets:lookup(?DOC_TO_REP_ID_MAP, DocId) of
- [{DocId, RepId}] ->
+ [{DocId, {Base, Ext} = RepId}] ->
couch_rep:end_replication(RepId),
true = ets:delete(?REP_ID_TO_DOC_ID_MAP, RepId),
- true = ets:delete(?DOC_TO_REP_ID_MAP, DocId);
+ true = ets:delete(?DOC_TO_REP_ID_MAP, DocId),
+ ?LOG_INFO("Stopped replication `~s` because replication document `~s`"
+ " was deleted", [Base ++ Ext, DocId]);
[] ->
ok
end.