× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hej Joakim,

- If _Rreadk() fails you could use _Rlocate() option _NO_LOCK to check if
the record exists.

If it does, I would assume that the cause of failure is a record lock. I
don't know for certain if my assumption is correct, but I have not yet had a
situation that has invalidated it.

Best regards,
Carsten Flensburg

----- Original Message ----- 
From: "Svensson, Joakim" <joakim.svensson@xxxxxxxxxxxxx>
To: <c400-l@xxxxxxxxxxxx>
Sent: Wednesday, June 23, 2004 9:42 AM
Subject: [C400-L] Checking for record locked



Hi all!

I didn't get any response to my question 2 weeks ago - perhaps it never
got trough to all of you?

Anyway - to rephrase the question - how do you distinguish between a
record missing and a record locked on a _Rreadk()?


/Joakim

------------------------------------
Joakim Svensson
Technology Services
Capgemini Sweden
------------------------------------

-----Original Message-----
Sent: den 11 juni 2004 13:29

Hi!

I've got a little problem which I cannot figure out how to solve. I have
a _Rreadk which I use to check if there is a record with a specified key
in the database. It's quite normal that there is no record with this
key, but if there is the program will do some additional processing.
I've run into a problem lately where the program misses that there is
this specific record; I believe it has to do with the way I use to check
the I/O-operation. Now I use:

rfb = _Rreadk ((*OQH)->koca2, (*OQH)->bufKOCA2, sizeof (RCA_t),
__KEY_EQ|__NO_LOCK, (*OQH)->keyKOCA2, sizeof(RCA2_k)); if
(rfb->num_bytes != sizeof(RCA_t)) {
/* do something */
}

But what happens if the record does exist but it's locked? Now I have no
way to figure out why the _Rreadk failed. I've been looking at the
XXIOFB.h feedback mechanism but I don't find any useful, same with
errno. In the __XXIOFB_T there is a file_dep_fb_offset which I suppose
contain error code and reason code, but I cannot find any description of
what this pointer is pointing at.

I suppose some of you know how to solve this and perhaps have a
description of the file dependent feedback area.


###########################################
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.