From 1197bb3a8ef1a9d9e408e821e615ff39bb3d74d7 Mon Sep 17 00:00:00 2001 From: seki Date: Wed, 16 Aug 2006 15:44:47 +0000 Subject: lib/rinda/ring.rb (do_reply): Fix for RingServer fails to find a TupleSpace when TupleSpace resides in the same ruby process with RingServer. a patch from Kent Sibilev. [ruby-core:08453] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/rinda/ring.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3162bc5ce..951d97975 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Aug 17 00:39:05 2006 Masatoshi SEKI + + * lib/rinda/ring.rb (do_reply): Fix for RingServer fails to find a + TupleSpace when TupleSpace resides in the same ruby process with + RingServer. a path from Kent Sibilev. [ruby-core:08453] + Wed Aug 16 11:45:36 2006 Nobuyoshi Nakada * process.c (proc_setuid, proc_setgid, proc_seteuid, proc_setegid): diff --git a/lib/rinda/ring.rb b/lib/rinda/ring.rb index 5b2d41245..ac8a71621 100644 --- a/lib/rinda/ring.rb +++ b/lib/rinda/ring.rb @@ -80,7 +80,7 @@ module Rinda # address of the local TupleSpace. def do_reply - tuple = @ts.take([:lookup_ring, DRbObject]) + tuple = @ts.take([:lookup_ring, nil]) Thread.new { tuple[1].call(@ts) rescue nil} rescue end -- cgit