Skip to content

Commit f304d0f

Browse files
committed
MB-49271 Merge remote-tracking branch 'couchbase/mad-hatter'
* MB-49271 [BP] Takeover via orchestrator using conn names < 200 chars * MB-49271 [BP] Limit DCP connection names to 200 chars max Change-Id: I1752fa75c346f349c4c846dad3b2392f809487d1
2 parents d504ed3 + 2fddafd commit f304d0f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/dcp_replicator.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ get_connection_name_test() ->
336336
"nodeA.eng.couchbase.com:bucket1", ConnAB),
337337
?assertEqual(true, length(ConnAB) =< ?MAX_DCP_CONNECTION_NAME),
338338

339-
%% Test where the connection name, using the pre-NEO method, won't
339+
%% Test where the connection name, using the previous method, won't
340340
%% fit into the maximum allowed.
341341

342342
Node1 = "[email protected]."

src/ns_single_vbucket_mover.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@ get_takeover_connection_name(NewMaster, OldMaster, Bucket, VBucket) ->
442442
NewM, ":",
443443
string:slice(Bucket, 0, 60), ":",
444444
integer_to_list(VBucket)]),
445-
true = length(ConnName1) =< ?MAX_DCP_CONNECTION_NAME,
446-
ConnName1
445+
true = length(ConnName1) =< ?MAX_DCP_CONNECTION_NAME,
446+
ConnName1
447447
end.
448448

449449
do_takeover(false, Pid, _Bucket, VBucket) ->

0 commit comments

Comments
 (0)