mirror of
https://github.com/documize/community.git
synced 2025-07-22 06:39:43 +02:00
Add dbtype command line switch and improved database type detection
Closes #116 and #117
This commit is contained in:
parent
d3512b499a
commit
e505bb36e2
10 changed files with 659 additions and 644 deletions
|
@ -125,7 +125,7 @@ func lockDB(runtime *env.Runtime) (bool, error) {
|
|||
if err != nil {
|
||||
// good error would be "Error 1062: Duplicate entry 'DBLOCK' for key 'idx_config_area'"
|
||||
if strings.HasPrefix(err.Error(), "Error 1062:") {
|
||||
runtime.Log.Info("Database locked by annother Documize instance")
|
||||
runtime.Log.Info("Database locked by another Documize instance")
|
||||
return false, nil
|
||||
}
|
||||
return false, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue