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 3 months ago
parent
commit
8f7019adf0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/chunk.c

+ 1
- 0
src/chunk.c View File

@ -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