Bug in Rinda (Drb 2.0.4)?

K

Kirk Haines

I'm working on figuring out the ins and outs of using Rinda and TupleSpaces
with DRb, and I think I've ran across a small bug in Rinda::TupleSpaceProxy.

The read_all method looks like this:

def read_all(tuple)
@ts.read_all
end

The problem here is that TupleSpace's read_all method is defined as:

def read_all(tuple)

so we get ArgumentError from a call to Rinda::TupleSpaceProxy.read_all.

The fix, which seems to work, is to just change it to this:

def read_all(tuple)
@ts.read_all(tuple)
end

Thanks,

Kirk Haines
 
M

Masatoshi SEKI

Hi, Kirk.

The read_all method looks like this:

def read_all(tuple)
@ts.read_all
end

The problem here is that TupleSpace's read_all method is defined as:

def read_all(tuple)

so we get ArgumentError from a call to Rinda::TupleSpaceProxy.read_all.

The fix, which seems to work, is to just change it to this:

def read_all(tuple)
@ts.read_all(tuple)
end

This is fixed in CVS.
see:
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/lib/rinda/
rinda.rb.diff?r1=1.1;r2=1.2;f=h
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top