From a6b9dff48ed83a09814ff6105bca6cc7f84c8743 Mon Sep 17 00:00:00 2001 From: hjp Date: Sun, 8 Sep 2019 09:05:40 +0000 Subject: [PATCH] Don't record fs_id:inode_number and time of backup for each instance by default We don't actually use that information. --- lib/Simba/CA.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Simba/CA.pm b/lib/Simba/CA.pm index 349829c..7065615 100644 --- a/lib/Simba/CA.pm +++ b/lib/Simba/CA.pm @@ -85,6 +85,8 @@ sub new { $self->{unknown_gid} = 65533; $self->{fh_log} = exists($opt->{fh_log}) ? $opt->{fh_log} : \*STDERR; $self->{log_level} = 99; + $self->{record_file_id} = 0; + $self->{record_time} = 0; if ($opt->{dbi}) { $self->{dbh} = DBI->connect(@{ $opt->{dbi} }, { AutoCommit => 0, @@ -516,8 +518,9 @@ sub db_record_version { push @{ $self->{caches}{insert_instances} }, [ $db_f->[0]{id}, - $f->{id}, - time(), 1, + $self->{record_file_id} ? $f->{id} : undef, + $slef->{record_time} ? time() : undef, + 1, $self->{session_id}, $version_id ]; if (@{ $self->{caches}{insert_instances} } > 10) {