Source

riak / src / riak_vnode_master.erl

Diff from to

src/riak_vnode_master.erl

 handle_cast({vnode_map, {Partition,_Node},
              {ClientPid,QTerm,Storekey,KeyData}}, State) ->
     Pid = get_vnode(Partition, State),
-    gen_server:cast(Pid, {map, ClientPid, QTerm, Storekey, KeyData}),
+    gen_server2:cast(Pid, {map, ClientPid, QTerm, Storekey, KeyData}),
     % (obligation done, now the problem of the vnodes)
     {noreply, State};
 handle_cast({vnode_put, {Partition,_Node},
              {FSM_pid,Storekey,RObj,ReqID}}, State) ->
     Pid = get_vnode(Partition, State),
-    gen_server:cast(Pid, {put, FSM_pid, Storekey, RObj, ReqID}),
+    gen_server2:cast(Pid, {put, FSM_pid, Storekey, RObj, ReqID}),
     % (obligation done, now the problem of the vnodes)
     {noreply, State};
 handle_cast({vnode_get, {Partition,_Node},
              {FSM_pid,Storekey,ReqID}}, State) ->
     Pid = get_vnode(Partition, State),
-    gen_server:cast(Pid, {get, FSM_pid, Storekey, ReqID}),
+    gen_server2:cast(Pid, {get, FSM_pid, Storekey, ReqID}),
     % (obligation done, now the problem of the vnodes)
     {noreply, State};
 handle_cast({vnode_merkle, {RemoteVN,Partition,Merkle}}, State) ->
     Pid = get_vnode(Partition, State),
-    gen_server:cast(Pid, {vnode_merkle, {RemoteVN,Merkle}}),
+    gen_server2:cast(Pid, {vnode_merkle, {RemoteVN,Merkle}}),
     % (obligation done, now the problem of the vnodes)
     {noreply, State}.
 
 handle_call({vnode_del, {Partition,_Node},
              {Storekey,ReqID}}, From, State) ->
     Pid = get_vnode(Partition, State),
-    gen_server:cast(Pid, {delete, From, Storekey, ReqID}),
+    gen_server2:cast(Pid, {delete, From, Storekey, ReqID}),
     % (obligation done, now the problem of the vnodes)
     {noreply, State}.