Skip to content

Commit 2ea575d

Browse files
committed
Fix indextool
As rt index now expects backtround jobs, it failed to start not from coroutined runtime.
1 parent 1636db1 commit 2ea575d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sphinxrt.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -5391,7 +5391,8 @@ void RtIndex_c::SetDebugCheck ( bool bCheckIdDups, int iCheckChunk )
53915391
m_bDebugCheck = true;
53925392
m_bCheckIdDups = bCheckIdDups;
53935393
m_iCheckChunk = iCheckChunk;
5394-
ProhibitSave();
5394+
if ( Threads::IsInsideCoroutine() )
5395+
ProhibitSave();
53955396
}
53965397

53975398
//////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)