Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
04b4f534
Commit
04b4f534
authored
Jan 31, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/update: convert runtime check to assertion
parent
c310941f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
UpdateGlue.cxx
src/db/update/UpdateGlue.cxx
+1
-4
No files found.
src/db/update/UpdateGlue.cxx
View file @
04b4f534
...
...
@@ -20,7 +20,6 @@
#include "config.h"
#include "Service.hxx"
#include "UpdateDomain.hxx"
#include "Mapper.hxx"
#include "db/DatabaseSimple.hxx"
#include "Idle.hxx"
#include "util/Error.hxx"
...
...
@@ -102,9 +101,6 @@ UpdateService::Enqueue(const char *path, bool discard)
{
assert
(
main_thread
.
IsInside
());
if
(
!
db_is_simple
()
||
!
mapper_has_music_directory
())
return
0
;
if
(
progress
!=
UPDATE_PROGRESS_IDLE
)
{
const
unsigned
id
=
GenerateId
();
if
(
!
queue
.
Push
(
path
,
discard
,
id
))
...
...
@@ -152,4 +148,5 @@ UpdateService::RunDeferred()
UpdateService
::
UpdateService
(
EventLoop
&
_loop
)
:
DeferredMonitor
(
_loop
),
walk
(
_loop
)
{
assert
(
db_is_simple
());
}
Write
Preview
Markdown
is supported
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