[ZOOM] ZOOM 1.0-g.hh OK (sas Re: zoom.hh)
mike at tecc.co.uk
Thu Nov 29 17:55:05 CET 2001
> Date: Thu, 29 Nov 2001 16:28:56 +0000
> From: Ashley Sanders <zzaascs at irwell.mimas.ac.uk>
> > It can, and should, simply fail. The abstract API is clear on the
> > point: see http://zoom.z3950.org/api/zoom-1.1.html#3.4.4 --
> > If the server has deleted the result set for which the Result
> > Set object is a proxy, then the Get Record method fails,
> > throwing an exception or by returning an ``undefined''
> > value. In these circumstances, the Error Code method will
> > return 27 (``Result set no longer exists - unilaterally
> > deleted by target'')
> That's not the point I was trying to make. Adam said "maybe the
> client is smart enough to keep the records in caches". I was
> trying to point out, that if getRecord() returns a reference or a
> const pointer (ie the resultSet owns the record), then the client
> (ie the resultSet) has no choice but to cache records.
I see. Yes, you're right.
So you now seem to be arguing that (in order to avoid this scenario)
every record returned from every resultSet _should_ be autonomous, so
that it requires explicit deletion. Is that a correct inference?
/o ) \/ Mike Taylor <mike at miketaylor.org.uk> www.miketaylor.org.uk
)_v__/\ "I don't actually know the cheese, Sir" -- Monty Python.
More information about the ZOOM