summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2011-03-18 14:00:16 -0400
committerMathias Stearn <mathias@10gen.com>2011-03-18 14:00:16 -0400
commit7a494a75b6b25cdd4464a2d1fc9be562ff496e09 (patch)
treec19855d957309f4971814ae97c0333a8827678be /db
parent6f262cb07b7619f9abb39e79dcae4fef844daf8a (diff)
downloadmongo-7a494a75b6b25cdd4464a2d1fc9be562ff496e09.tar.gz
Temp make setNoJournal use journal to try to fix buildbot (or at least isolate the problem)
Diffstat (limited to 'db')
-rw-r--r--db/dur.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/db/dur.cpp b/db/dur.cpp
index 1070c93e3b2..901206a9e50 100644
--- a/db/dur.cpp
+++ b/db/dur.cpp
@@ -143,6 +143,9 @@ namespace mongo {
}
void DurableImpl::setNoJournal(void *dst, void *src, unsigned len) {
+#if 1 //TODO: fix non-journaling impl
+ memcpy(writingPtr(dst,len), src, len);
+#else
MemoryMappedFile::makeWritable(dst, len);
// we stay in this mutex for everything to work with DurParanoid/validateSingleMapMatches
@@ -162,6 +165,7 @@ namespace mongo {
// to keep them in sync. we do this as we do not want to cause a copy on write unnecessarily.
memcpy(dst, src, len);
}
+#endif
}
/** base declare write intent function that all the helpers call. */