Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Hugo Beauzée-Luyssen
medialibrary
Commits
f2d44d3e
Commit
f2d44d3e
authored
Oct 07, 2021
by
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/MediaLibrary.cpp
View file @
f2d44d3e
...
...
@@ -2294,7 +2294,7 @@ bool MediaLibrary::forceRescanLocked()
* unknown show
*/
if
(
m_parser
!=
nullptr
)
m_parser
->
prepareRescan
();
m_parser
->
flush
();
{
auto
t
=
getConn
()
->
newTransaction
();
// Let the triggers clear out the Fts tables
...
...
src/parser/Parser.cpp
View file @
f2d44d3e
...
...
@@ -112,11 +112,6 @@ void Parser::flush()
m_opScheduled
.
store
(
0
,
std
::
memory_order_release
);
}
void
Parser
::
prepareRescan
()
{
flush
();
}
void
Parser
::
rescan
()
{
for
(
auto
&
s
:
m_serviceWorkers
)
...
...
src/parser/Parser.h
View file @
f2d44d3e
...
...
@@ -72,12 +72,6 @@ public:
void
resume
();
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.
///
/// This will prepare the worker for restart, fetch all uncompleted tasks and
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment