Skip to content

Commit

Permalink
Cherrypick Perconas fix for leaking descriptors with new xbstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Jun 22, 2017
1 parent f1a6d24 commit ba9dadd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extra/mariabackup/xbstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,11 @@ extract_worker_thread_func(void *arg)
}

if (chunk.type == XB_CHUNK_TYPE_EOF) {
pthread_mutex_lock(ctxt->mutex);
pthread_mutex_unlock(&entry->mutex);
my_hash_delete(ctxt->filehash, (uchar *) entry);
pthread_mutex_unlock(ctxt->mutex);

continue;
}

Expand Down

0 comments on commit ba9dadd

Please sign in to comment.