Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15524

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.7.7
    • MMAPv1, Storage
    • Storage Execution

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

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: