No callers, so no functional change, as yet.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v2: Suppress "used only once" warning
getmethod
postfork
$dbh_tests db_retry db_retry_retry db_retry_abort
- db_begin_work
+ db_begin_work db_prepare
ensuredir get_filecontents_core_quiet system_checked
nonempty visible_undef show_abs_time
);
our $dbh_tests;
+scalar *main::DEBUG;
+# declaration prevents `Name "main::DEBUG" used only once'
+# scalar prevents `useless use of a variable in void context'
+
#---------- static default config settings ----------
our %c = qw(
return $r;
}
+sub db_prepare ($) {
+ # caller must ensure global filehandle DEBUG is open
+ my ($stmt) = @_;
+ print ::DEBUG "DB PREPARING:\n$stmt\n";
+ return $dbh_tests->prepare($stmt);
+}
+
sub postfork () {
$mjobdb->jobdb_postfork();
}