summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/validate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/validate.cpp')
-rw-r--r--src/mongo/db/commands/validate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/validate.cpp b/src/mongo/db/commands/validate.cpp
index 6c1c52b629f..7b9d315863e 100644
--- a/src/mongo/db/commands/validate.cpp
+++ b/src/mongo/db/commands/validate.cpp
@@ -247,7 +247,7 @@ namespace mongo {
cl_last = cl;
}
- Record *r = cl.rec();
+ Record *r = collection->getRecordStore()->recordFor(cl);
len += r->lengthWithHeaders();
nlen += r->netLength();