[Kai-commits] SF.net SVN: kai:[130] trunk/src
Kai is a distributed key-value datastore
Status: Beta
Brought to you by:
takemaru
From: <coo...@us...> - 2009-03-22 05:49:19
|
Revision: 130 http://kai.svn.sourceforge.net/kai/?rev=130&view=rev Author: cooldaemon Date: 2009-03-22 05:49:16 +0000 (Sun, 22 Mar 2009) Log Message: ----------- Fixed a typo. Modified Paths: -------------- trunk/src/kai_tcp_server_acceptor.erl trunk/src/kai_tcp_server_monitor.erl Modified: trunk/src/kai_tcp_server_acceptor.erl =================================================================== --- trunk/src/kai_tcp_server_acceptor.erl 2009-03-22 05:48:10 UTC (rev 129) +++ trunk/src/kai_tcp_server_acceptor.erl 2009-03-22 05:49:16 UTC (rev 130) @@ -32,7 +32,7 @@ % Callbacks init(Parent, ListenSocket, State, MonitorName, Mod, Option) -> proc_lib:init_ack(Parent, {ok, self()}), - kai_tcp_server_monitor:regist(MonitorName, self()), + kai_tcp_server_monitor:register(MonitorName, self()), accept(ListenSocket, State, MonitorName, Mod, Option). accept(ListenSocket, State, MonitorName, Mod, Option) -> Modified: trunk/src/kai_tcp_server_monitor.erl =================================================================== --- trunk/src/kai_tcp_server_monitor.erl 2009-03-22 05:48:10 UTC (rev 129) +++ trunk/src/kai_tcp_server_monitor.erl 2009-03-22 05:49:16 UTC (rev 130) @@ -15,7 +15,7 @@ -export([start_link/1, stop/1]). -export([ - regist/2, + register/2, increment/2, decrement/2, state/1 ]). @@ -34,8 +34,8 @@ stop(ServerRef) -> gen_server:call(ServerRef, stop). -regist(ServerRef, Pid) -> - gen_server:call(ServerRef, {regist, Pid}). +register(ServerRef, Pid) -> + gen_server:call(ServerRef, {register, Pid}). increment(ServerRef, Pid) -> gen_server:cast(ServerRef, {increment, Pid}). @@ -53,7 +53,7 @@ handle_call(stop, _From, State) -> {stop, normal, stopped, State}; -handle_call({regist, Pid}, _From, {MonitorRefs, Pids}) -> +handle_call({register, Pid}, _From, {MonitorRefs, Pids}) -> {reply, ok, { [erlang:monitor(process, Pid) | MonitorRefs], Pids This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |