summaryrefslogtreecommitdiff
path: root/src/mongo/db/index/index_access_method.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index/index_access_method.h')
-rw-r--r--src/mongo/db/index/index_access_method.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/index/index_access_method.h b/src/mongo/db/index/index_access_method.h
index 9fa286de2ac..404ec76243f 100644
--- a/src/mongo/db/index/index_access_method.h
+++ b/src/mongo/db/index/index_access_method.h
@@ -338,6 +338,14 @@ public:
return {};
}
+ /**
+ * For test use only. Provides direct access to the SortedDataInterface, allowing tests to write
+ * invalid entries that would otherwise not be possible via IndexAccessMethod.
+ */
+ SortedDataInterface* getSortedDataInterface_forTest() {
+ return _newInterface.get();
+ }
+
protected:
/**
* Fills 'keys' with the keys that should be generated for 'obj' on this index.