45014fb713fc38c6fa2c5ca8e76874c5b48d133d hiram Wed May 27 16:05:11 2026 -0700 correctly use the appropriate host for the hgcentral table refs #31811 diff --git src/hg/hubApi/findGenome.c src/hg/hubApi/findGenome.c index cd75f1c59e4..292780da6a9 100644 --- src/hg/hubApi/findGenome.c +++ src/hg/hubApi/findGenome.c @@ -587,32 +587,32 @@ strftime(nowTime, sizeof nowTime, "%Y-%m-%d %H:%M:%S", timeNow); struct dyString *msg = dyStringNew(0); dyStringPrintf(msg, "%s\nAssembly request\nasmId: %s\nname: %s\nemail: %s\nbetterName: %s\ncomment: %s", nowTime, asmId, name, email, isNotEmpty(betterName) ? betterName : "", isNotEmpty(comment) ? comment : ""); struct jsonWrite *jw = apiStartOutput(); jsonWriteString(jw, "msg", dyStringContents(msg)); apiFinishOutput(0, NULL, jw); char *ottoTable = cfgOption("ottoTable"); /* probably ottoRequest */ if (isNotEmpty(ottoTable)) { - struct sqlConnection *conn = hConnectCentral(); + struct sqlConnection *conn = hConnectOtto(); if (sqlTableExists(conn, ottoTable)) { /* asmId placed in both fromDb and toDb in case toDb does not allow empty */ struct dyString *update = dyStringNew(0); sqlDyStringPrintf(update, "INSERT INTO %s (requestType, fromDb, toDb, email, comment, requestTime, status, buildDir) " "VALUES ('assembly', '%s', '%s', '%s', '%s', now(), 0, '')", ottoTable, asmId, asmId, email, dyStringContents(fullComment)); sqlUpdate(conn, dyStringCannibalize(&update)); } - hDisconnectCentral(&conn); + hDisconnectOtto(&conn); } dyStringFree(&fullComment); dyStringFree(&msg); } /* void apiAssemblyRequest(char *words[MAX_PATH_INFO]) */