fix: Enable computation of last known record and block based on lastknownrecord and lastknownblock even if last changes are updates

This commit is contained in:
Felicitas Pojtinger
2021-12-06 23:55:31 +01:00
parent ee5d3c72d9
commit 943d92d052
17 changed files with 203 additions and 175 deletions

View File

@@ -107,7 +107,7 @@ func Query(
}
}
if err := formatting.PrintCSV(formatting.GetTARHeaderAsCSV(record, block, hdr)); err != nil {
if err := formatting.PrintCSV(formatting.GetTARHeaderAsCSV(record, -1, block, -1, hdr)); err != nil {
return []*tar.Header{}, err
}
@@ -196,7 +196,7 @@ func Query(
}
}
if err := formatting.PrintCSV(formatting.GetTARHeaderAsCSV(record, block, hdr)); err != nil {
if err := formatting.PrintCSV(formatting.GetTARHeaderAsCSV(record, -1, block, -1, hdr)); err != nil {
return []*tar.Header{}, err
}