summaryrefslogtreecommitdiff
path: root/src/mongo/db/prefetch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/prefetch.h')
-rw-r--r--src/mongo/db/prefetch.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/db/prefetch.h b/src/mongo/db/prefetch.h
index 36310b40676..3e97753da23 100644
--- a/src/mongo/db/prefetch.h
+++ b/src/mongo/db/prefetch.h
@@ -33,8 +33,13 @@
namespace mongo {
class Collection;
class Database;
- class OperationContext;
// page in both index and data pages for an op from the oplog
- void prefetchPagesForReplicatedOp(OperationContext* txn, Database* db, const BSONObj& op);
+ void prefetchPagesForReplicatedOp(Database* db, const BSONObj& op);
+
+ // page in pages needed for all index lookups on a given object
+ void prefetchIndexPages(Collection *nsd, const BSONObj& obj);
+
+ // page in the data pages for a record associated with an object
+ void prefetchRecordPages(const char *ns, const BSONObj& obj);
}