summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/sorted_data_interface.h
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@10gen.com>2016-04-12 17:47:30 -0400
committerRobert Guo <robert.guo@10gen.com>2016-04-29 16:07:43 -0400
commit1d58e42a8a2030d956c972dab20da9c9f01d61bf (patch)
tree05ab35edcb4dd5f30791261fa9ccee23132418a2 /src/mongo/db/storage/sorted_data_interface.h
parent98dacf304edac746ffd4f1820c0065fbf9aec7e3 (diff)
downloadmongo-1d58e42a8a2030d956c972dab20da9c9f01d61bf.tar.gz
SERVER-23055 optimize perf of hashtable used by validate()
Diffstat (limited to 'src/mongo/db/storage/sorted_data_interface.h')
-rw-r--r--src/mongo/db/storage/sorted_data_interface.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/db/storage/sorted_data_interface.h b/src/mongo/db/storage/sorted_data_interface.h
index eeefb10d5ea..d21fb6e3c8f 100644
--- a/src/mongo/db/storage/sorted_data_interface.h
+++ b/src/mongo/db/storage/sorted_data_interface.h
@@ -135,13 +135,9 @@ public:
//
/**
- * 'output' is used to store results of validate when 'full' is true.
- * If 'full' is false, 'output' may be NULL.
- *
* TODO: expose full set of args for testing?
*/
virtual void fullValidate(OperationContext* txn,
- bool full,
long long* numKeysOut,
ValidateResults* fullResults) const = 0;
@@ -185,7 +181,7 @@ public:
*/
virtual long long numEntries(OperationContext* txn) const {
long long x = -1;
- fullValidate(txn, false, &x, NULL);
+ fullValidate(txn, &x, NULL);
return x;
}