Skip to content

Commit

Permalink
add vbucket number to capi service log
Browse files Browse the repository at this point in the history
Change-Id: I1390ccf50f15eac3d48963a4a40125ccd07556a4
Reviewed-on: http://review.couchbase.org/78503
Reviewed-by: Artem Stemkovski <artem@couchbase.com>
Tested-by: Artem Stemkovski <artem@couchbase.com>
  • Loading branch information
ysui6888 authored and vzasade committed May 24, 2017
1 parent c3e4b8b commit a629f86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deps/ns_couchdb/src/capi_replication.erl
Expand Up @@ -287,8 +287,8 @@ handle_pre_replicate(Req, Bucket, VB, VBOpaque, CommitOpaque) ->

VBMatches = VBOpaque =:= undefined orelse VBOpaque =:= VBUUID,

?xdcr_debug("CommitOk: ~p, VBMatches: ~p, CommitOpaque: ~p, stuff: ~p",
[CommitOk, VBMatches,
?xdcr_debug("VB: ~p, CommitOk: ~p, VBMatches: ~p, CommitOpaque: ~p, stuff: ~p",
[VB, CommitOk, VBMatches,
CommitOpaque, {FailoverLog, CommitUUID, CommitSeq}]),

Code = case VBMatches andalso CommitOk of
Expand Down Expand Up @@ -405,7 +405,7 @@ handle_commit_for_checkpoint(Req, Bucket, VB, VBOpaque, _) ->

{UUID, Seqno} = get_vbucket_seqno_stats(Bucket, VB),

?xdcr_debug("UUID: ~p, VBOpaque: ~p", [{UUID, Seqno}, VBOpaque]),
?xdcr_debug("VB: ~p, UUID: ~p, VBOpaque: ~p", [VB, {UUID, Seqno}, VBOpaque]),

case UUID =:= VBOpaque of
true ->
Expand Down

0 comments on commit a629f86

Please sign in to comment.