Unlocks a byte range for the specified open file object.
#include <zPublics.h> STATUS zUnlockByteRange( Key_t key, Xid_t xid, QUAD startingOffset, QUAD length);
(IN) Specifies the file (as returned by zOpen or zCreate) whose byte range is being unlocked.
(IN) Is currently not implemented. Pass zNILXID.
(IN) Specifies the logical byte offset in the file where the lock begins.
(IN) Specifies the length (in bytes) of the lock to be released. The xid, startingOffset, and length must match to release the lock.
zOK |
The operation completed successfully. |
non-0 |
An error occurred (see Section 4.1, Return Values for a description). |
Only locks not bound to a transaction can be unlocked by calling zUnlockByteRange, which prevents dirty reads and rereads for transactions.