@@ -202,7 +202,8 @@ replrtq_reset_all_workercounts(WorkerC, PerPeerL) ->
202
202
fetch (QueueName , {? MODULE , [Node , _ClientId ]}) ->
203
203
Me = self (),
204
204
ReqId = mk_reqid (),
205
- Options = [deletedvclock , {pr , 1 }, {r , 1 }, {notfound_ok , false }],
205
+ R = application :get_env (riak_kv , replrtq_vnodecheck , 1 ),
206
+ Options = [deletedvclock , {pr , 1 }, {r , R }, {notfound_ok , false }],
206
207
case node () of
207
208
Node ->
208
209
riak_kv_get_fsm :start ({raw , ReqId , Me },
@@ -239,8 +240,9 @@ push(RObjMaybeBin, IsDeleted, _Opts, {?MODULE, [Node, _ClientId]}) ->
239
240
Key = riak_object :key (RObj ),
240
241
Me = self (),
241
242
ReqId = mk_reqid (),
243
+ W = application :get_env (riak_kv , replrtq_vnodecheck , 1 ),
242
244
Options = [asis , disable_hooks , {update_last_modified , false },
243
- {w , 1 }, {pw , 1 }, {dw , 0 }, {node_confirms , 1 }],
245
+ {w , W }, {pw , 1 }, {dw , 0 }, {node_confirms , 1 }],
244
246
% asis - stops the PUT from being re-coordinated
245
247
% disable_hooks - this makes this compatible with previous repl,
246
248
% although this may no longer be necessary (no repl hook to disable)
0 commit comments