infra: remove unnecessary parameter

This commit is contained in:
Thomas Schoebel-Theuer 2023-03-30 15:56:15 +02:00
parent 82bbe583f8
commit 15009b1395
3 changed files with 2 additions and 7 deletions

View File

@ -526,7 +526,6 @@ err:
}
int log_read(struct log_status *logst,
bool sloppy,
struct log_header *lh,
void **payload, int *payload_len,
void **dealloc)
@ -609,7 +608,6 @@ restart:
mref->ref_len - logst->offset,
mref->ref_pos,
logst->offset,
sloppy,
lh,
payload,
payload_len,
@ -827,7 +825,6 @@ int log_scan(void *buf,
int len,
loff_t file_pos,
int file_offset,
bool sloppy,
struct log_header *lh,
void **payload, int *payload_len,
void **dealloc,
@ -863,7 +860,7 @@ int log_scan(void *buf,
offset = i;
if (unlikely(i > 0 && !sloppy)) {
if (unlikely(i > 0)) {
MARS_ERR(SCAN_TXT "detected a hole / bad data >= %d\n",
SCAN_PAR, i);
RECORD_ERR(-MARS_ERR_SCAN_HOLE);

View File

@ -126,7 +126,6 @@ extern int log_scan(void *buf,
int len,
loff_t file_pos,
int file_offset,
bool sloppy,
struct log_header *lh,
void **payload, int *payload_len,
void **dealloc,
@ -191,7 +190,6 @@ void *log_reserve(struct log_status *logst, struct log_header *lh);
bool log_finalize(struct log_status *logst, int len, void (*endio)(void *private, int error), void *private);
int log_read(struct log_status *logst,
bool sloppy,
struct log_header *lh,
void **payload, int *payload_len,
void **dealloc);

View File

@ -3068,7 +3068,7 @@ void trans_logger_replay(struct trans_logger_brick *brick)
}
brick_mem_free(dealloc);
status = log_read(&input->logst, false, &lh,
status = log_read(&input->logst, &lh,
&buf, &len, &dealloc);
/* only catch the very first mars_error_code */