6861403ca8a731be04bb0dc4be79f7272a35b73f hiram Mon Jun 1 10:52:06 2026 -0700 using otto profile to talk to hgcentral refs #31811liftOver.c diff --git src/hg/hubApi/apiUtils.c src/hg/hubApi/apiUtils.c index bed46b6782e..9a376044728 100644 --- src/hg/hubApi/apiUtils.c +++ src/hg/hubApi/apiUtils.c @@ -812,32 +812,29 @@ dyStringPrintf(textOutput, "%s\n", lineOut); } void textFinishOutput() /* all done with text output, print it all out */ { puts("Content-Type:text/plain\n"); printf("%s", dyStringCannibalize(&textOutput)); } struct sqlConnection *hConnectOtto() /* Connect to otto database using otto profile, fallback to central */ { char *ottoDb = cfgOption2("otto", "db"); -if (isEmpty(ottoDb)) - { - // No otto profile defined, use central +if (isEmpty(ottoDb)) // No otto profile defined, use central return hConnectCentral(); - } struct sqlConnection *conn = sqlConnectProfile("otto", ottoDb); if (conn == NULL) errAbort("Cannot connect to otto database '%s' using otto profile", ottoDb); return conn; } void hDisconnectOtto(struct sqlConnection **pConn) /* Disconnect otto connection */ { sqlDisconnect(pConn); }