Skip to content

Commit ba9dadd

Browse files
committed
Cherrypick Perconas fix for leaking descriptors with new xbstream.
percona/percona-xtrabackup@72c55f4
1 parent f1a6d24 commit ba9dadd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extra/mariabackup/xbstream.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,11 @@ extract_worker_thread_func(void *arg)
444444
}
445445

446446
if (chunk.type == XB_CHUNK_TYPE_EOF) {
447+
pthread_mutex_lock(ctxt->mutex);
447448
pthread_mutex_unlock(&entry->mutex);
449+
my_hash_delete(ctxt->filehash, (uchar *) entry);
450+
pthread_mutex_unlock(ctxt->mutex);
451+
448452
continue;
449453
}
450454

0 commit comments

Comments
 (0)