2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

93_DbLog: contrib 5.5.7

git-svn-id: https://svn.fhem.de/fhem/trunk@26876 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2022-12-20 12:02:41 +00:00
parent f605718c31
commit f8a4ca89a7

View File

@ -2781,6 +2781,9 @@ sub _DbLog_SBP_onRun_LogBulk {
__DbLog_SBP_commitOnly ($name, $dbh, $history);
}
if ($operation eq 'importCachefile') {
return ($error, $nins_hist, $rowlback);
}
if (lc($DbLogType) =~ m(current)) {
$error = __DbLog_SBP_onRun_LogCurrent ( { subprocess => $subprocess,
@ -2796,10 +2799,6 @@ sub _DbLog_SBP_onRun_LogBulk {
);
}
if ($operation eq 'importCachefile') {
return ($error, $nins_hist, $rowlback);
}
my $rt = tv_interval($st); # SQL-Laufzeit ermitteln
my $brt = tv_interval($bst); # Background-Laufzeit ermitteln
my $ot = $rt.",".$brt;
@ -4093,7 +4092,7 @@ sub __DbLog_SBP_beginTransaction {
my $name = shift;
my $dbh = shift;
my $useta = shift;
my $info = shift // "begin transaction";
my $info = shift // "begin Transaction";
my $err = q{};
@ -4148,7 +4147,7 @@ sub __DbLog_SBP_rollbackOnly {
eval{ if(!$dbh->{AutoCommit}) {
$dbh->rollback();
Log3 ($name, 4, "DbLog $name - transaction rollback table $table");
Log3 ($name, 4, "DbLog $name - Transaction rollback table $table");
1;
}
else {
@ -6698,7 +6697,7 @@ sub DbLog_addCacheLine {
use warnings;
eval { # one transaction
eval { # one Transaction
my $memcount = DbLog_addMemCacheRow ($name, $row); # Datensatz zum Memory Cache hinzufügen
if ($async) {