Exemple #1
0
    void serializeStats(MemoryBuffer &mb)
    {
        CSlaveActivity::serializeStats(mb);

        CriticalBlock block(statsCs);
        CRuntimeStatisticCollection mergedStats(spillStats);
        mergeStats(mergedStats, sorter);
        mergedStats.serialize(mb);
    }
    virtual void serializeStats(MemoryBuffer &mb)
    {
        CSlaveActivity::serializeStats(mb);
        CriticalBlock b(joinHelperCrit);
        rowcount_t p = joinhelper?joinhelper->getLhsProgress():0;
        mb.append(p);

        CRuntimeStatisticCollection mergedStats(spillStats);
        mergeStats(mergedStats, sorter);    // No danger of a race with reset() because that never replaces a valid sorter
        mergedStats.serialize(mb);
    }