mirror of
https://github.com/Quiq/docker-registry-ui.git
synced 2025-07-18 16:21:24 +00:00
Fix panic when using MySQL for events storage and no table created yet
This commit is contained in:
parent
b563c6d1a1
commit
2a0159b73e
@ -1,8 +1,12 @@
|
||||
## Changelog
|
||||
|
||||
### 0.7.1 (2018-07-18)
|
||||
|
||||
* Fix panic when using MySQL for events storage and no table created yet.
|
||||
|
||||
### 0.7 (2018-07-04)
|
||||
|
||||
* When using MySQL for event storage, do not leak connections.
|
||||
* When using MySQL for events storage, do not leak connections.
|
||||
* Last events were not shown when viewing a repo of non-default namespace.
|
||||
* Support repos with slash in the name.
|
||||
* Enable Sonatype Nexus compatibility.
|
||||
|
@ -175,8 +175,10 @@ func (e *EventListener) getDababaseHandler() (*sql.DB, error) {
|
||||
if err != nil {
|
||||
firstRun = true
|
||||
}
|
||||
if rows != nil {
|
||||
rows.Close()
|
||||
}
|
||||
}
|
||||
|
||||
// Create table on first run.
|
||||
if firstRun {
|
||||
|
Loading…
Reference in New Issue
Block a user