Browse Source

[core] fix fd sharing when splitting file chunk

(bug on master branch; never released)

fix fd sharing in chunkqueue_steal_partial_file_chunk()
master
Glenn Strauss 11 months ago
parent
commit
8f7019adf0
  1. 1
      src/chunk.c

1
src/chunk.c

@ -482,6 +482,7 @@ static void chunkqueue_steal_partial_file_chunk(chunkqueue * const restrict dest
if (c->file.fd >= 0) {
chunk * const d = dest->last;
if (c->file.refchg) {
d->file.fd = c->file.fd;
d->file.ref = c->file.ref;
d->file.refchg = c->file.refchg;
d->file.refchg(d->file.ref, 1);

Loading…
Cancel
Save