From 4c221b5ce50c3eaabc0348432b6df6c41aeabee5 Mon Sep 17 00:00:00 2001 From: Jason Rassi Date: Mon, 20 Oct 2014 18:38:32 -0400 Subject: SERVER-15675 PlanStage::invalidate() needs OperationContext PlanStage::invalidate() is always called by a different thread than the stage's owning thread. The method should use the active OperationContext (the caller's) rather than the stage's OperationContext. --- src/mongo/db/exec/projection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/exec/projection.h') diff --git a/src/mongo/db/exec/projection.h b/src/mongo/db/exec/projection.h index 51037d1b3b1..41b000ef482 100644 --- a/src/mongo/db/exec/projection.h +++ b/src/mongo/db/exec/projection.h @@ -85,7 +85,7 @@ namespace mongo { virtual void saveState(); virtual void restoreState(OperationContext* opCtx); - virtual void invalidate(const DiskLoc& dl, InvalidationType type); + virtual void invalidate(OperationContext* txn, const DiskLoc& dl, InvalidationType type); virtual std::vector getChildren() const; -- cgit v1.2.1