diff options
author | David Storch <david.storch@10gen.com> | 2016-02-26 12:19:30 -0500 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-02-26 16:53:27 -0500 |
commit | cf6f3fb6341910f471f81172d75919ff5cf82eb9 (patch) | |
tree | d71d62d8bab17c0ef3add7954388dae51c07dbdd /src/mongo/db/exec/working_set_common.h | |
parent | 5d6af1d23e464bf77405501b32cb6d0cdec04340 (diff) | |
download | mongo-cf6f3fb6341910f471f81172d75919ff5cf82eb9.tar.gz |
SERVER-22793 always clear buffered WorkingSetIDs on saveState
This ensures that the set of WorkingSetIDs does not grow without
bound.
Diffstat (limited to 'src/mongo/db/exec/working_set_common.h')
-rw-r--r-- | src/mongo/db/exec/working_set_common.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/exec/working_set_common.h b/src/mongo/db/exec/working_set_common.h index dff7089f1a6..3cf5ba7a449 100644 --- a/src/mongo/db/exec/working_set_common.h +++ b/src/mongo/db/exec/working_set_common.h @@ -44,9 +44,10 @@ public: const Collection* collection); /** - * Iterates over 'workingSet' members that have transitioned to the LOC_AND_IDX state since - * the last yield. For all members still in the LOC_AND_IDX state, fetches the associated - * document and puts the member in "loc with unowned obj" state. + * For storage engines with document-level concurrency, iterates over 'workingSet' members that + * have transitioned to the LOC_AND_IDX state since the last yield. For all members still in the + * LOC_AND_IDX state, fetches the associated document and puts the member in "loc with unowned + * obj" state. * * This "force-fetching" is called on saveState() for storage-engines that support document- * level locking. This ensures that all WS members are still valid, even after the |