summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2011-02-04 15:45:05 -0500
committerdwight <dwight@10gen.com>2011-02-04 15:45:05 -0500
commitbda02722891fac55cb69e8ad15133c11b7e82401 (patch)
treea8104922e259c538868a21cccb723c3a2c49922c
parentbc89eaa5110b921616a1d98fb5b08864f9601454 (diff)
downloadmongo-bda02722891fac55cb69e8ad15133c11b7e82401.tar.gz
add fsync
-rw-r--r--db/dur_journal.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/db/dur_journal.cpp b/db/dur_journal.cpp
index f8f82fd1932..d7154c85f41 100644
--- a/db/dur_journal.cpp
+++ b/db/dur_journal.cpp
@@ -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();
}
}