Skip to content

Commit 013b77f

Browse files
authored
Merge pull request #142 from ebean-orm/feature/reset-metrics
Reset the metrics after initialisation of the pool
2 parents b31615d + 30eb238 commit 013b77f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ebean-datasource/src/main/java/io/ebean/datasource/pool/ConnectionPool.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ private void init() {
155155
initialiseDatabase();
156156
}
157157
initialiseConnections();
158+
// reset the metrics
159+
status(true);
158160
} catch (SQLException e) {
159161
throw new DataSourceInitialiseException("Error initialising DataSource with user: " + user + " error:" + e.getMessage(), e);
160162
}

0 commit comments

Comments
 (0)