Skip to content

Commit

Permalink
Fix indextool
Browse files Browse the repository at this point in the history
As rt index now expects backtround jobs, it failed to start not from
coroutined runtime.
  • Loading branch information
klirichek committed Nov 5, 2021
1 parent 1636db1 commit 2ea575d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sphinxrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5391,7 +5391,8 @@ void RtIndex_c::SetDebugCheck ( bool bCheckIdDups, int iCheckChunk )
m_bDebugCheck = true;
m_bCheckIdDups = bCheckIdDups;
m_iCheckChunk = iCheckChunk;
ProhibitSave();
if ( Threads::IsInsideCoroutine() )
ProhibitSave();
}

//////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 2ea575d

Please sign in to comment.