Skip to content

Commit

Permalink
Merge pull request #7165 from VoltDB/ENG-19626-SyncUDFUpdates-84
Browse files Browse the repository at this point in the history
ENG-19626:
  • Loading branch information
wweiss-voltdb authored May 20, 2020
2 parents 34ba71c + dbb8a3c commit f2556b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frontend/org/voltdb/UserDefinedFunctionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public UserDefinedFunctionRunner getFunctionRunnerById(int functionId) {
}

// Load all the UDFs recorded in the catalog. Instantiate and register them in the system.
public void loadFunctions(CatalogContext catalogContext) {
// WARNING: This is called from all sites in parallel but updates a shared static
// data structure in FunctionForVoltDB
public synchronized void loadFunctions(CatalogContext catalogContext) {
final CatalogMap<Function> catalogFunctions = catalogContext.database.getFunctions();
// Remove obsolete tokens
for (UserDefinedFunctionRunner runner : m_udfs.values()) {
Expand Down

0 comments on commit f2556b0

Please sign in to comment.