diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-08-28 00:59:14 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-08-28 01:00:05 -0700 |
commit | 2b6654a23925a3ce9d596030e6eebcf543eddbd5 (patch) | |
tree | c3913b123082aad6b2e89df8bb207178e4e1f81c /src | |
parent | 58cc46e42a8c7312a890a51bffce42d9a152be7a (diff) |
journals: propagate errors from journal_read()
(unlikely) dispatch errors were being dropped on the floor
Diffstat (limited to 'src')
-rw-r--r-- | src/journals.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/journals.c b/src/journals.c index f7fdc50..27b2756 100644 --- a/src/journals.c +++ b/src/journals.c @@ -123,9 +123,7 @@ int journal_read(iou_t *iou, journal_t *journal, uint64_t offset, uint64_t lengt buf_used(journal, buf); memcpy(dest, &buf->data[offset - buf->offset], length); - thunk_dispatch(closure); - - return 0; + return thunk_end(thunk_dispatch(closure)); } } |