2001-05-18 09:50 GMT+3 Alexander Kresin <alex@belacy.belgorod.su>

This commit is contained in:
Alexander S.Kresin
2001-05-18 05:55:41 +00:00
parent 6c44badd16
commit 996407054e
2 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,11 @@
2001-05-18 09:50 GMT+3 Alexander Kresin <alex@belacy.belgorod.su>
* source/rdd/dbfntx/dbfntx1.c
* indexes now are opened with FO_READWRITE regardless of
readonly mode on/off to allow locking.
They are opened with FO_READ mode only if exclusive and readonly are set.
( Before index file couldn't be locked while moving through it
in shared readonly mode ).
2001-05-17 13:25 GMT+3 Alexander Kresin <alex@belacy.belgorod.su>
* source/rdd/dbfntx/dbfntx1.c
* bugs fixed, reported by John M. S. Chiang, related to appending of

View File

@@ -2638,7 +2638,9 @@ static ERRCODE ntxOrderListAdd( NTXAREAP pArea, LPDBORDERINFO pOrderInfo )
}
pIndex = hb_ntxIndexNew( pArea );
uiFlags = pArea->fReadonly ? FO_READ : FO_READWRITE;
/* Index file could be opened with FO_READ only in exclusive readonly mode
to allow locking in other modes */
uiFlags = !pArea->fShared && pArea->fReadonly ? FO_READ : FO_READWRITE;
uiFlags |= pArea->fShared ? FO_DENYNONE : FO_EXCLUSIVE;
do