Bug 2087 - Rescanning too often.
: Rescanning too often.
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: 6.2.0
: Macintosh All
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-09-07 08:19 UTC by Blackketter Dean
Modified: 2008-09-15 14:36 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
only scan if -d passes (551 bytes, patch)
2005-09-08 20:44 UTC, KDF
Details | Diff
split prefs to avoid rescan (1.81 KB, patch)
2005-09-09 11:37 UTC, KDF
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Blackketter Dean 2005-09-07 08:19:47 UTC
If I go to server settings and enter an invalid path for a music folder or change your playlists folder or 
language it begins rescanning automatically.  

It shouldn't.
Comment 1 Michael Herger 2005-09-08 13:34:19 UTC
Does a language change really start a scan? Can't reproduce this on 4209.
Comment 2 KDF 2005-09-08 14:00:26 UTC
This might have been fixed yesterday, at change 4190.  The defaults for the scan
settings were wrong, and would trigger an onChange event since the whole page
gets submitted whenever anything else changes (like language or paths).  The
path change, however, is likely still an issue.  I think the onChange for that
starts a scan regardless of the validity of a path.
Comment 3 KDF 2005-09-08 20:44:21 UTC
Created attachment 808 [details]
only scan if -d passes

instead of unconditionally rescanning, only do it in the case that audiodir
passes -d test
Comment 4 Blackketter Dean 2005-09-08 21:31:07 UTC
Michael: 4190 only changed the order which the rescan options were displayed.  

Kevin: That change looks reasonable, but we should also look to see if the audiodir and/or playlists dir 
have changed before triggering an automatic rescan.

Comment 5 KDF 2005-09-08 22:05:46 UTC
isn't that was calls onChange? the dir being different? I'm not sure I'm following.
Comment 6 Blackketter Dean 2005-09-09 08:16:30 UTC
The problem is that any change to the page triggers a manual rescan, now that we have a pop-up menu 
for choosing the rescan.
Comment 7 KDF 2005-09-09 10:38:32 UTC
so, the popup then go back to its own pref, say 'rescantype'.  The 'rescan'
button would then appear blow instead of beside (we dont have layout control
precise enough to force two prefs into same line).  Then ONLY clicking rescan
would act on the popup setting.  we'd have to suppress the change msg for
rescantype to make it appear seamless.
Comment 8 KDF 2005-09-09 11:37:59 UTC
Created attachment 810 [details]
split prefs to avoid rescan 

this goes in addition to attachment 808 [details], as an example of what I have explained
above.
Comment 9 Dan Sully 2005-09-12 12:39:48 UTC
Looks good. Go ahead and commit.
Comment 10 KDF 2005-09-12 19:58:56 UTC
committed to trunk at change 4248