summaryrefslogtreecommitdiff
path: root/db/dur_writetodatafiles.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-12-22 14:26:01 -0500
committerMathias Stearn <mathias@10gen.com>2010-12-22 16:52:47 -0500
commit0bd4f7db8d750438722048eb9cc46d95e71be82e (patch)
tree769827f89b7f9a8d930b390d32cf239d43545c57 /db/dur_writetodatafiles.cpp
parent82d46601e1283d7140523a800b77a2af0957e44b (diff)
downloadmongo-0bd4f7db8d750438722048eb9cc46d95e71be82e.tar.gz
privatize permanent members of WriteIntent
Diffstat (limited to 'db/dur_writetodatafiles.cpp')
-rw-r--r--db/dur_writetodatafiles.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/dur_writetodatafiles.cpp b/db/dur_writetodatafiles.cpp
index 4c46e5ef4a5..344a85d85d8 100644
--- a/db/dur_writetodatafiles.cpp
+++ b/db/dur_writetodatafiles.cpp
@@ -48,9 +48,9 @@ namespace mongo {
/* we go backwards as what is at the end is most likely in the cpu cache. it won't be much, but we'll take it. */
for( set<WriteIntent>::const_iterator it(commitJob.writes().begin()), end(commitJob.writes().end()); it != end; ++it ){
const WriteIntent& intent = *it;
- stats.curr._writeToDataFilesBytes += intent.len;
+ stats.curr._writeToDataFilesBytes += intent.length();
dassert(intent.w_ptr);
- memcpy(intent.w_ptr, intent.p, intent.len);
+ memcpy(intent.w_ptr, intent.start(), intent.length());
}
debugValidateMapsMatch();