Skip to content

Commit

Permalink
TreeNode.writeChild now verify write the same way set sibling and set…
Browse files Browse the repository at this point in the history
… successor does
  • Loading branch information
burqen committed Jan 16, 2018
1 parent 579b58c commit 43e66e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ abstract void insertKeyAndRightChildAt( PageCursor cursor, KEY key, long child,

static void writeChild( PageCursor cursor, long child, long stableGeneration, long unstableGeneration )
{
GenerationSafePointerPair.write( cursor, child, stableGeneration, unstableGeneration );
long write = GenerationSafePointerPair.write( cursor, child, stableGeneration, unstableGeneration );
GenerationSafePointerPair.assertSuccess( write );
}

abstract int leafMaxKeyCount();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ private String asString( PageCursor cursor, boolean includeValue, long stableGen
// KEYS
KEY readKey = layout.newKey();
VALUE readValue = layout.newValue();
StringJoiner keys = new StringJoiner( " ");
StringJoiner keys = new StringJoiner( " " );
cursor.setOffset( allocOffset );
while ( cursor.getOffset() < cursor.getCurrentPageSize() )
{
Expand Down

0 comments on commit 43e66e4

Please sign in to comment.