Handle missing dictionary-name keys as no conflict
This commit is contained in:
committed by
Mario Fetka
parent
4c3f2afecf
commit
b02c348124
@@ -2508,7 +2508,16 @@ FSTATIC RCODE DDCheckNameConflict(
|
||||
if (RC_BAD( rc = FSBtSearch( pDb, pDictIxLFile, &pStack,
|
||||
IxKeyBuf, uiKeyLen, 0L)))
|
||||
{
|
||||
goto Exit;
|
||||
if (rc == FERR_EOF_HIT)
|
||||
{
|
||||
// No matching dictionary-name key exists yet, so there is no
|
||||
// name conflict. Treat end-of-index as a successful miss.
|
||||
rc = FERR_OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
goto Exit;
|
||||
}
|
||||
}
|
||||
|
||||
if (pStack->uiCmpStatus == BT_EQ_KEY)
|
||||
|
||||
Reference in New Issue
Block a user