Bug fixing
+ DB access is now right and uses copied sessions + DB session is now specifying the safe state and the mode + Fixed the issue with too early ICCC messages regarding to late cache + Add the MIME type for Dart + Fixed the issuse with wrong order of shutdown handlers - TODO: Testing of these changes
This commit is contained in:
1 parent
86451938ec
commit
7120a729bd
19 files changed
+85
-48
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ func initDB() {
|
||||
defer Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameINIT, `Done init of number generator collection.`)
|
||||
|
||||
// Get the database:
|
||||
db = CustomerDB.DB()
|
||||
dbSession, db = CustomerDB.DB()
|
||||
|
||||
if db == nil {
|
||||
Log.LogFull(senderName, LM.CategorySYSTEM, LM.LevelERROR, LM.SeverityCritical, LM.ImpactCritical, LM.MessageNameDATABASE, `Was not able to get the customer database.`)
|
||||
|
||||
@@ -8,4 +8,6 @@ type ShutdownFunction struct {
|
||||
|
||||
func (a ShutdownFunction) Shutdown() {
|
||||
Log.LogShort(senderName, LM.CategoryAPP, LM.LevelWARN, LM.MessageNameSHUTDOWN, `Shutting down the number generator.`)
|
||||
db.Logout()
|
||||
dbSession.Close()
|
||||
}
|
||||
@@ -10,6 +10,7 @@ var (
|
||||
isActive bool = false
|
||||
getHandler string = ``
|
||||
db *mgo.Database = nil
|
||||
dbSession *mgo.Session = nil
|
||||
collectionNumGen *mgo.Collection = nil
|
||||
channelBufferSize int = 10
|
||||
channelList map[string]chan int64 = nil
|
||||
|
||||
Reference in new issue
Block a user