Skip to content

Commit

Permalink
fix deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Aakash Arayambeth committed Feb 4, 2025
1 parent 0411452 commit 6c2204c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sqlite/src/comdb2build.c
Original file line number Diff line number Diff line change
Expand Up @@ -7806,6 +7806,10 @@ void comdb2CreateHashPartition(Parse *pParse, IdList *pColumn, IdList *pPartitio
abort();
}
}
/* release schema lock here
* On a standalone db, the following create systems will deadlock on this
*/
unlock_schema_lk();
if (createTables) {
logmsg(LOGMSG_USER, "CREATING REMOTE TABLES +++++++++++++++\n");
if (createRemoteTables(partition)) {
Expand All @@ -7821,4 +7825,5 @@ void comdb2CreateHashPartition(Parse *pParse, IdList *pColumn, IdList *pPartitio
setError(pParse, SQLITE_ABORT, "Failed to create remote partitions");
}
}
rdlock_schema_lk();
}

0 comments on commit 6c2204c

Please sign in to comment.