mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
add fsync
This commit is contained in:
parent
bc89eaa511
commit
bda0272289
@ -213,6 +213,9 @@ namespace mongo {
|
||||
f.write(o, data.get(), SZ);
|
||||
uassert(13641, str::stream() << "error writing to " << filepath.string(), !f.bad());
|
||||
}
|
||||
|
||||
// perhaps not necessary but will make the logging and behavior more readily understood
|
||||
f.fsync();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user