0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

add fsync

This commit is contained in:
dwight 2011-02-04 15:45:05 -05:00
parent bc89eaa511
commit bda0272289

View File

@ -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();
}
}