BtreeLogic<BtreeLayout>::Builder does not enforce ascending (key, DiskLoc) ordering

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.7.7
    • Component/s: MMAPv1, Storage
    • Storage Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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() ) );
      

            Assignee:
            [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: