Point to the master database rather than the read-only database.
authorChris Sharp <csharp@georgialibraries.org>
Sun, 14 Jan 2018 19:35:06 +0000 (14:35 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Sun, 14 Jan 2018 19:37:14 +0000 (14:37 -0500)
Because of a misconfiguration in GenaSYS (since fixed), the QR
configuration file pulled the reports *database* connection info
rather than the *state_store* (e.g. master) database.  Fixed with
this change.

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
models/openilsConfig.class.php

index 7064b86..0868002 100644 (file)
@@ -11,11 +11,11 @@ class openilsConfig {
                }
                
                if (QR_PGSQL_USE_OPENSRF_XML_CONFIG) {          
-                       define ('QR_PGSQL_HOST', $xml->default->reporter->setup->database->host);
-                       define ('QR_PGSQL_PORT', $xml->default->reporter->setup->database->port);
-                       define ('QR_PGSQL_DBNAME', $xml->default->reporter->setup->database->db);
-                       define ('QR_PGSQL_USER', $xml->default->reporter->setup->database->user);
-                       define ('QR_PGSQL_PASSWORD', $xml->default->reporter->setup->database->pw);
+                       define ('QR_PGSQL_HOST', $xml->default->reporter->setup->state_store->host);
+                       define ('QR_PGSQL_PORT', $xml->default->reporter->setup->state_store->port);
+                       define ('QR_PGSQL_DBNAME', $xml->default->reporter->setup->state_store->db);
+                       define ('QR_PGSQL_USER', $xml->default->reporter->setup->state_store->user);
+                       define ('QR_PGSQL_PASSWORD', $xml->default->reporter->setup->state_store->pw);
                }
 
                if (QR_MEMCACHE_USE_OPENSRF_XML_CONFIG) {