Force MongoDB to write to journal by default

This commit is contained in:
RunasSudo 2017-11-28 12:16:33 +11:00
parent 79bd2322c7
commit 864db1ba02
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ import eos.core.db
class MongoDBProvider(eos.core.db.DBProvider):
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]
def get_all(self, collection):