Skip to content

Commit

Permalink
fixup! fsync: Reuse shared mem indices.
Browse files Browse the repository at this point in the history
Also free thread fsync APC index.
  • Loading branch information
Paul Gofman authored and ivyl committed Jul 6, 2022
1 parent aaf325b commit b6c0add
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,11 @@ static void destroy_thread( struct object *obj )

if (do_esync())
close( thread->esync_fd );
if (thread->fsync_idx) fsync_free_shm_idx( thread->fsync_idx );
if (thread->fsync_idx)
{
fsync_free_shm_idx( thread->fsync_idx );
fsync_free_shm_idx( thread->fsync_apc_idx );
}
}

/* dump a thread on stdout for debugging purposes */
Expand Down

0 comments on commit b6c0add

Please sign in to comment.