Skip to content

Commit

Permalink
Make the fulltext index open index readers through the KernelTransact…
Browse files Browse the repository at this point in the history
…ion APIs, in a hacky way, which will be cleaned up later.
  • Loading branch information
chrisvest committed Jul 19, 2018
1 parent 18f74c4 commit 7a93ebf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Expand Up @@ -81,9 +81,8 @@ IndexProxy createPopulatingIndexProxy( final StoreIndexDescriptor descriptor, fi
flipper.setFlipTarget( () ->
{
monitor.populationCompleteOn( descriptor );
OnlineIndexProxy onlineProxy = new OnlineIndexProxy( capableIndexDescriptor, onlineAccessorFromProvider( descriptor, samplingConfig ),
storeView,
true );
IndexAccessor accessor = onlineAccessorFromProvider( descriptor, samplingConfig );
OnlineIndexProxy onlineProxy = new OnlineIndexProxy( capableIndexDescriptor, accessor, storeView, true );
if ( flipToTentative )
{
return new TentativeConstraintIndexProxy( flipper, onlineProxy );
Expand Down
Expand Up @@ -234,7 +234,7 @@ long graphPropertiesReference()
}

@Override
IndexReader indexReader( IndexReference index, boolean fresh ) throws IndexNotFoundKernelException
public IndexReader indexReader( IndexReference index, boolean fresh ) throws IndexNotFoundKernelException
{
assertValidIndex( index );
return fresh ? storageReader.getFreshIndexReader( (IndexDescriptor) index ) :
Expand Down
Expand Up @@ -470,7 +470,7 @@ public final void futureRelationshipPropertyReferenceRead( long reference )
ktx.assertOpen();
}

abstract IndexReader indexReader( IndexReference index, boolean fresh ) throws IndexNotFoundKernelException;
public abstract IndexReader indexReader( IndexReference index, boolean fresh ) throws IndexNotFoundKernelException;

abstract LabelScanReader labelScanReader();

Expand Down

0 comments on commit 7a93ebf

Please sign in to comment.