[SERVER-15524] BtreeLogic<BtreeLayout>::Builder does not enforce ascending (key, DiskLoc) ordering Created: 03/Oct/14  Updated: 06/Dec/22  Resolved: 14/Sep/18

Status: Closed
Project: Core Server
Component/s: MMAPv1, Storage
Affects Version/s: 2.7.7
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Backlog - Storage Execution Team
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Participants:

 Description   

Relevant snippet of test case extracted below:

scoped_ptr<HarnessHelper> harnessHelper( newHarnessHelper() );
scoped_ptr<SortedDataInterface> sorted( harnessHelper->newSortedDataInterface() );
 
scoped_ptr<OperationContext> opCtx( harnessHelper->newOperationContext() );
scoped_ptr<SortedDataBuilderInterface> builder(
        sorted->getBulkBuilder( opCtx.get(), true /* allow duplicates */ ) );
 
ASSERT_OK( builder->addKey( key1, loc2 ) );
ASSERT_EQUALS( ErrorCodes::InternalError, builder->addKey( key1, loc1 ) );
builder->commit( false );
 
ASSERT_EQUALS( 1, sorted->numEntries( opCtx.get() ) );


Generated at Thu Feb 08 03:38:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.