Bug in Roadmap Code for BPlusTree::bPlusCreate

59 views
Skip to first unread message

Ruben Jacob

unread,
Oct 26, 2023, 12:39:42 PM10/26/23
to NITCbase Users
Hi,
In the roadmap code for bPlusCreate, it is not specified to setAttrCatEntry after creating a new root block. Because of this, when we call bPlusInsert, it is checked whether attrCatEntry has a rootblock and E_NOINDEX is returned. Therefore, when we create an index and then drop it, the error message of NO INDEX is seen.

TL;DR 
In bPlusInsert this line:
int blockNum = /* rootBlock of B+ Tree (from attrCatEntry) */;
results in blockNum getting value -1 as we had not set AttrCatEntry with rootBlock in bPlusCreate function.

C M MADHAV PRABHU

unread,
Oct 26, 2023, 12:50:28 PM10/26/23
to Ruben Jacob, NITCbase Users
Yes this is a known issue, we will update this ASAP.

--
You received this message because you are subscribed to the Google Groups "NITCbase Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nitcbase-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/nitcbase-users/88ccddfb-c0d2-4352-8879-02c90c84c89en%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Murali Krishnan

unread,
Oct 27, 2023, 2:00:09 AM10/27/23
to C M MADHAV PRABHU, Ruben Jacob, NITCbase Users
Reply all
Reply to author
Forward
0 new messages