Force MongoDB to write to journal by default
This commit is contained in:
parent
79bd2322c7
commit
864db1ba02
@ -20,7 +20,7 @@ import eos.core.db
|
|||||||
|
|
||||||
class MongoDBProvider(eos.core.db.DBProvider):
|
class MongoDBProvider(eos.core.db.DBProvider):
|
||||||
def connect(self):
|
def connect(self):
|
||||||
self.client = pymongo.MongoClient(self.db_uri)
|
self.client = pymongo.MongoClient(self.db_uri, fsync=True)
|
||||||
self.db = self.client[self.db_name]
|
self.db = self.client[self.db_name]
|
||||||
|
|
||||||
def get_all(self, collection):
|
def get_all(self, collection):
|
||||||
|
Loading…
Reference in New Issue
Block a user