Skip to content

Commit 8eff6b8

Browse files
authored
Merge pull request #535 from gregcorbett/monitoring_improvement
Enhance check on database used on monitoring page (dev)
2 parents 2907268 + 852ba33 commit 8eff6b8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

htdocs/web_portal/GOCDB_monitor/tests.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,13 @@ function test_db_connection()
134134
$retval = [];
135135
try {
136136
$entityManager = Factory::getNewEntityManager();
137-
$entityManager->getConnection()->connect();
137+
// Get the database connection.
138+
$connection = $entityManager->getConnection();
139+
// Try a simple select statement - attempt to bypass any caching
140+
// by requesting the current timestamp to the nearest millisecond.
141+
// This is done by the 3, which represents the number of decimal
142+
// to display.
143+
$connection->fetchOne('SELECT CURRENT_TIMESTAMP(3)');
138144
$retval["status"] = OK;
139145
$retval["message"] = OKMSG;
140146
} catch (\Exception $e) {

htdocs/web_portal/static_html/goc5_logo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<!-- <img src="img/Logo-1.6.png" class="logo_image" height="39" style="vertical-align: middle;"/>-->
55
<h3 class="Logo_Text Small_Bottom_Margin Standard_Padding"
66
style="vertical-align: middle; margin-left: 0.2em;">
7-
GOCDB 5.12.1
7+
GOCDB 5.12.2-rc.1
88
</h3>
99

1010
</a>

0 commit comments

Comments
 (0)