summaryrefslogtreecommitdiff
path: root/src/mongo/db/prefetch.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-05-28 18:40:59 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-05-28 18:40:59 -0400
commit8bc2783d2e6e39c0910455b4eac9e0f93a482cfc (patch)
tree46a523ea698d1a9a80013816d8e568e2fdd2f2dc /src/mongo/db/prefetch.h
parent0672061deb58aac931912bed68d014247c581968 (diff)
downloadmongo-8bc2783d2e6e39c0910455b4eac9e0f93a482cfc.tar.gz
Revert "SERVER-13961 Pass LockState to DBWrite and DBRead directly"
This reverts commit 0672061deb58aac931912bed68d014247c581968.
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);
}