mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 20:59:53 +05:00
Change mode for mongo connection
From Monotonic to Strong
This commit is contained in:
@@ -125,7 +125,7 @@ func NewMongoStorage(host, port, db, user, pass string, cdrsIndexes []string) (*
|
||||
}
|
||||
|
||||
ndb := session.DB(db)
|
||||
session.SetMode(mgo.Monotonic, true)
|
||||
session.SetMode(mgo.Strong, true)
|
||||
index := mgo.Index{
|
||||
Key: []string{"key"},
|
||||
Unique: true, // Prevent two documents from having the same index key
|
||||
|
||||
Reference in New Issue
Block a user