Commit f2d44d3e authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Parser: Remove now duplicated prepareRescan function

parent cf45a5c1
Pipeline #145581 passed with stages
in 9 minutes and 23 seconds
...@@ -2294,7 +2294,7 @@ bool MediaLibrary::forceRescanLocked() ...@@ -2294,7 +2294,7 @@ bool MediaLibrary::forceRescanLocked()
* unknown show * unknown show
*/ */
if ( m_parser != nullptr ) if ( m_parser != nullptr )
m_parser->prepareRescan(); m_parser->flush();
{ {
auto t = getConn()->newTransaction(); auto t = getConn()->newTransaction();
// Let the triggers clear out the Fts tables // Let the triggers clear out the Fts tables
......
...@@ -112,11 +112,6 @@ void Parser::flush() ...@@ -112,11 +112,6 @@ void Parser::flush()
m_opScheduled.store( 0, std::memory_order_release ); m_opScheduled.store( 0, std::memory_order_release );
} }
void Parser::prepareRescan()
{
flush();
}
void Parser::rescan() void Parser::rescan()
{ {
for ( auto& s : m_serviceWorkers ) for ( auto& s : m_serviceWorkers )
......
...@@ -72,12 +72,6 @@ public: ...@@ -72,12 +72,6 @@ public:
void resume(); void resume();
void stop(); void stop();
/// ///
/// \brief prepareRescan Prepares the parser for a forced rescan
///
/// This will pause all workers and flush the tasks list.
///
void prepareRescan();
///
/// \brief rescan Launch a rescan of all processed files. /// \brief rescan Launch a rescan of all processed files.
/// ///
/// This will prepare the worker for restart, fetch all uncompleted tasks and /// This will prepare the worker for restart, fetch all uncompleted tasks and
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment