Skip to content
Permalink
Browse files
fixed crash of daemon on SIGHUP with disabled index; added regression…
… to test 260
  • Loading branch information
tomatolog committed Jan 7, 2019
1 parent a876222 commit 621418b829e70af36aaa322a2f51ece3f86bc499
Showing with 10 additions and 1 deletion.
  1. +1 −1 src/searchd.cpp
  2. +9 −0 test/test_260/test.xml
@@ -19634,7 +19634,7 @@ static void ReloadIndexSettings ( CSphConfigParser & tCP ) REQUIRES ( MainThread
{
// skip JSON indexes - no need to delete them
ServedDescRPtr_c pServed ( it.Get() );
if ( pServed->m_bJson )
if ( pServed && pServed->m_bJson )
continue;

dLocalToDelete.Add ( true, it.GetName() );
@@ -45,6 +45,15 @@ index tmp1
dict = keywords
charset_table = 0..9, A..Z->a..z, _, a..z
}

index missed_idx
{
source = sql1
charset_table = 0..9, A..Z->a..z, _, a..z
docinfo = extern
path = <data_path/>/missed_idx
}

</config>

<db_drop>drop table if exists test_table</db_drop>

0 comments on commit 621418b

Please sign in to comment.