Opened 18 years ago

Closed 18 years ago

#1114 closed patch (fixed)

mythrename.pl - call finish on statement before disconnecting

Reported by: sphery <mtdean@…> Owned by: xris
Priority: trivial Milestone: unknown
Component: mythtv Version:
Severity: low Keywords:
Cc: Ticket locked: no

Description

The attached patch ensures that statement handles are not active before disconnecting to avoid DBI's printing a warning. Without the patch, when the script fails, the user sees the mythrename.pl-generated error and a DBI warning

mkdir view/Lost: Permission denied at ./mythrename.pl line 400
DBI::db=HASH(0x8356598)->disconnect invalidates 1 active statement handle
(either destroy statement handles or call finish on them before disconnecting)
at ./mythrename.pl line 227.

The warning is meant to alert the user that a fetch loop terminated early, perhaps due to an uncaught error. However, since mythrename.pl has proper error checking (or, at least no known uncaught errors), the warning is likely to confuse the user in spite of the descriptive error message. (I tested the failure mode by generating links to a directory on which I remove write access.)

Attachments (1)

mythtv-mythrename-finish_on_disconnect.patch (464 bytes) - added by sphery <mtdean@…> 18 years ago.
patch

Download all attachments as: .zip

Change History (2)

Changed 18 years ago by sphery <mtdean@…>

patch

comment:1 Changed 18 years ago by xris

Resolution: fixed
Status: newclosed

(In [8728]) apply patch to close #1114

Note: See TracTickets for help on using tickets.