diff options
Diffstat (limited to 'src/mongo/db/exec/and_common.h')
-rw-r--r-- | src/mongo/db/exec/and_common.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mongo/db/exec/and_common.h b/src/mongo/db/exec/and_common.h index beb84e5751f..fe7a0573694 100644 --- a/src/mongo/db/exec/and_common.h +++ b/src/mongo/db/exec/and_common.h @@ -52,13 +52,7 @@ public: verify(src.hasRecordId()); verify(dest->recordId == src.recordId); - // Merge computed data. - typedef WorkingSetComputedDataType WSCD; - for (WSCD i = WSCD(0); i < WSM_COMPUTED_NUM_TYPES; i = WSCD(i + 1)) { - if (!dest->hasComputed(i) && src.hasComputed(i)) { - dest->addComputed(src.getComputed(i)->clone()); - } - } + dest->metadata().mergeWith(src.metadata()); if (dest->hasObj()) { // The merged WSM that we're creating already has the full document, so there's |