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<SortedDataInterface::Cursor> cursor( sorted->newCursor( opCtx.get(), 1 ) );
|
|
|
cursor->locate( minKey, minDiskLoc );
|
|
|
vector<const BSONElement*> keyEnd( 1 );
|
vector<bool> keyEndInclusive( 1 );
|
|
|
cursor->advanceTo( key1, 1, true, keyEnd, keyEndInclusive );
|
Attachments
Issue Links
- is related to
-
SERVER-17635 Improve SortedDataInterface::Cursor API
-
- Closed
-