mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 02:03:45 -04:00
[filescanner] Purge old db entries outside of the transaction in bulk
scan
This commit is contained in:
parent
be6b4376e8
commit
201f019655
@ -1221,17 +1221,15 @@ bulk_scan(int flags)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
db_transaction_begin();
|
|
||||||
/* Protect spotify from the imminent purge if rescanning */
|
/* Protect spotify from the imminent purge if rescanning */
|
||||||
|
db_transaction_begin();
|
||||||
db_file_ping_bymatch("spotify:", 0);
|
db_file_ping_bymatch("spotify:", 0);
|
||||||
db_pl_ping_bymatch("spotify:", 0);
|
db_pl_ping_bymatch("spotify:", 0);
|
||||||
|
db_transaction_end();
|
||||||
|
|
||||||
DPRINTF(E_DBG, L_SCAN, "Purging old database content\n");
|
DPRINTF(E_DBG, L_SCAN, "Purging old database content\n");
|
||||||
db_purge_cruft(start);
|
db_purge_cruft(start);
|
||||||
db_groups_cleanup();
|
db_groups_cleanup();
|
||||||
|
|
||||||
db_transaction_end();
|
|
||||||
|
|
||||||
db_queue_cleanup();
|
db_queue_cleanup();
|
||||||
|
|
||||||
cache_artwork_purge_cruft(start);
|
cache_artwork_purge_cruft(start);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user