fixed: thread plugin didn't correctly set the last item and replies (in 'thread' table)
when deleting an answer added: ThreadInfo::Repair() method will be used by 'fsck' winix function added: plugins/groupitem directory for a new plugin: 'groupitem' git-svn-id: svn://ttmath.org/publicrep/winix/trunk@725 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -75,6 +75,7 @@ void AddMounts(PluginInfo & info)
|
||||
void RemoveThread(PluginInfo & i)
|
||||
{
|
||||
thread_info.RemoveThread(i.l1);
|
||||
thread_info.RemoveThreadAnswer(i.l1);
|
||||
}
|
||||
|
||||
|
||||
@@ -128,6 +129,18 @@ void EndRequest(PluginInfo & info)
|
||||
}
|
||||
|
||||
|
||||
// !! temporarily
|
||||
void Rescan(PluginInfo & info)
|
||||
{
|
||||
if( info.config->Bool(L"thread_rescan", false) == true )
|
||||
{
|
||||
log << log1 << "---------- rescanning thread db ------------- " << logend;
|
||||
thread_info.Repair();
|
||||
log << log1 << "---------- thread db rescanning is finished ------------- " << logend;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
@@ -152,6 +165,9 @@ using namespace Thread;
|
||||
plugin.Assign(WINIX_PL_THREAD_SET_SORTTAB_INDEX, SetSortTabIndex);
|
||||
plugin.Assign(WINIX_PL_THREAD_PREPARE_THREAD, PrepareThread);
|
||||
|
||||
// temporarily
|
||||
plugin.Assign(WINIX_PLUGIN_INIT, Rescan);
|
||||
|
||||
tdb.SetConn(info.db->GetConn());
|
||||
tdb.LogQueries(info.config->log_db_query);
|
||||
|
||||
|
Reference in New Issue
Block a user