Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cdb2api/cdb2api.c
Original file line number Diff line number Diff line change
Expand Up @@ -8590,11 +8590,12 @@ int cdb2_open(cdb2_hndl_tp **handle, const char *dbname, const char *type,
if (rc != 0)
goto out;

if (hndl->flags & CDB2_DIRECT_CPU) {
if ((hndl->flags & CDB2_DIRECT_CPU) || (hndl->flags & CDB2_ADMIN)) {
/* Get defaults from comdb2db.cfg */
only_read_config(hndl);
hndl->got_dbinfo = 1;
hndl->num_hosts = 1;
set_cdb2_timeouts(hndl);
strncpy(hndl->hosts[0], type, sizeof(hndl->hosts[0]) - 1);
char *p = strchr(hndl->hosts[0], ':');
if (p) {
Expand Down