Skip to content

Commit

Permalink
Don't unlock in-progress mutex from pushlogs- it hasn't locked it
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Hannum <mhannum72@gmail.com>
  • Loading branch information
markhannum committed Oct 25, 2023
1 parent a3bb6d4 commit 50ceaf9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions db/pushlogs.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@

static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;

extern pthread_mutex_t schema_change_in_progress_mutex;

static char target[SIZEOF_SEQNUM];
static int have_thread = 0;

Expand Down Expand Up @@ -114,7 +112,6 @@ static void *pushlogs_thread(void *voidarg)
unlock_schema_lk();
if (ret != 0) {
logmsg(LOGMSG_ERROR, "pushlogs_thread: failed opening meta\n");
Pthread_mutex_unlock(&schema_change_in_progress_mutex);
Pthread_mutex_lock(&mutex);
have_thread = 0;
Pthread_mutex_unlock(&mutex);
Expand Down

0 comments on commit 50ceaf9

Please sign in to comment.