-
Notifications
You must be signed in to change notification settings - Fork 19
Conversation
Implementation of first methods in tree based on unique values in tree only.
Seek methods implemented. Still need to add backward functionality and implement next() method.
Still need to correct backward sorting
Backward search are supported now
Unindex implementation
First to do: |
Modify code after lint check
Instead of locking whole tree, it locks only unsafe nodes.
Remove locking next and previous
Give explanation of what function does with tree/cursor, instead of what will be assigned. Reviewed 4 of 6 files at r1, 2 of 2 files at r2. src/pmse_index_cursor.cpp, line 66 at r2 (raw file):
src/pmse_index_cursor.cpp, line 113 at r2 (raw file):
hard to read ".loc<_endState". src/pmse_index_cursor.cpp, line 196 at r2 (raw file): Quoted 7 lines of code…> cmp = (endCursor.node->keys[endCursor.index]).getBSON().woCompare(_endState->query.key,_ordering, false); > if(cmp==0){ > if((endCursor.node->keys[endCursor.index]).loc<_endState->query.loc.repr()) > cmp = -1; > else if((endCursor.node->keys[endCursor.index]).loc > _endState->query.loc.repr()) > cmp = 1; > else cmp = 0;src/pmse_index_cursor.cpp, line 230 at r2 (raw file):
src/pmse_index_cursor.cpp, line 359 at r2 (raw file):
src/pmse_tree.cpp, line 441 at r2 (raw file):
i = index + 1; ? src/pmse_tree.cpp, line 443 at r2 (raw file):
i = index; src/pmse_tree.cpp, line 444 at r2 (raw file):
Now substraction from i Comments from Reviewable |
Implement remove() method. Correct next() method. Code refacting.
Corrcts previous commit. Added check for node safe for delete in index.
This code delete only half of records.
|
Reviewed 4 of 5 files at r3. src/pmse_tree.cpp, line 104 at r3 (raw file):
src/pmse_tree.cpp, line 510 at r3 (raw file):
If current can be null, this statement node->_pmutex gives you segmentation fault. Comments from Reviewable |
Review status: 5 of 6 files reviewed at latest revision, 10 unresolved discussions. src/pmse_tree.cpp, line 104 at r3 (raw file): Previously, KFilipek (Krzysztof Filipek) wrote…
I don't see multiple unlocking here. Please give more details. src/pmse_tree.cpp, line 510 at r3 (raw file): Previously, KFilipek (Krzysztof Filipek) wrote…
Actuay, current cannot be null. it is guarantied by calling functions. Comments from Reviewable |
but I create issue (deletion). Reviewed 1 of 5 files at r3. Comments from Reviewable |
This modification merges index key object with RecordId, creating unique pair which can be sorted in index.
This change is