SystemDBInfo *si = NULL;
si = pool_get_system_db_info();
- /* since PCP clients can only see SystemDBInfo, set system_db_status from the shared memory */
- si->system_db_status = SYSDB_STATUS;
-
if (si == NULL)
{
char code[] = "SystemDBNotDefined";
/* finally, indicate that all data is sent */
char fin_code[] = "CommandComplete";
+ /* since PCP clients can only see SystemDBInfo, set system_db_status from the shared memory */
+ si->system_db_status = SYSDB_STATUS;
+
snprintf(port, sizeof(port), "%d", si->port);
snprintf(status, sizeof(status), "%d", si->system_db_status);
snprintf(dist_def_num, sizeof(dist_def_num), "%d", si->dist_def_num);