On 04/29/2016 12:31 PM, jorge soto wrote: > running rddbcheck returns this: > > Cut 1 [Agua salada] in cart 010281 [Agua salada] has invalid length. > Correct? (y/N) > > what happens if I enter y? N? >
Well, it does several things, but fundamentally rddbcheck checks the cut's duration in the database (CUTS.LENGTH) with the calculated duration of the track (the WAV file). It then calls the method RDCart::updateLength() (in lib/rdcart.cpp) to update database columns in the CART and CUTS tables. The columns it updates include CUTS.VALIDITY, CUTS.LENGTH, CUTS.SEGUE_START_POINT, CUTS.SEGUE_END_POINT, CART.AVERAGE_LENGTH, etc. It does some other things, but this is (as far as I can tell) the fundamental work of this phase of rddbcheck. I was looking at the source for rddbcheck in Rivendell version 2.10.3. Hope this helps! ~David Klann > 2016-04-26 18:18 GMT-07:00 Robert Jeffares <[email protected] > <mailto:[email protected]>>: > > notes on the use of rddbcheck > This is a really handy routine for sorting through your database > and identifying errors > best to run it first with no options and see what it picks up > > options > > --user= > may be the user for db if user is not root. No it > defaults to "user" which is the Rivendell user. > --yes > answer yes to every question USE WITH CARE > --no > answer no to every question obviously mutually > exclusive with --yes > --orphan-group= > group to put orphaned carts in GROUPS no longer in DB > --dump-cuts-dir= > place to put audio cuts that are in /var/snd but don't > have any entries in the database. > > Over time entries get corrupted and this check picks up errors and > helps you make decisions. My DB is more then 10 years old. > I was amazed at the number of errors that had accumulated over > that time. In my case possibly because I have a number of client > processes polling the database to update remote sites and the odd > scrap over who goes first may have helped create the orphans it found. > > regards > Robert Jeffares > Big Valley Radio > The Wireless Station > Raupo Radio > _______________________________________________ > Rivendell-dev mailing list > [email protected] > <mailto:[email protected]> > http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev > > > > > _______________________________________________ > Rivendell-dev mailing list > [email protected] > http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Rivendell-dev mailing list [email protected] http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
