diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-06-09 22:19:59 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-12 00:59:11 -0400 |
commit | 05332b0749393e7e644e5f7f76500b57bb70f7e3 (patch) | |
tree | bb0f47889193d581c046f7836179eea80c99d5d0 /src/mem3.erl | |
parent | 9f19e5450164e492bfe1ab57862725a1966cd231 (diff) |
faster+simpler get_pingnode_state
Diffstat (limited to 'src/mem3.erl')
-rw-r--r-- | src/mem3.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mem3.erl b/src/mem3.erl index cbb7a8d5..29140471 100644 --- a/src/mem3.erl +++ b/src/mem3.erl @@ -321,10 +321,7 @@ install_new_state(#mem{args=Args} = State) -> get_pingnode_state(PingNode) -> - % ping the PingNode and get its state - pong = net_adm:ping(PingNode), - timer:sleep(1000), % let dist. erl get set up... sigh. - {ok, RemoteState} = rpc:call(PingNode, mem3, state, []), + {ok, RemoteState} = gen_server:call({?SERVER, PingNode}, state), RemoteState. |