コード例 #1
0
    void HeapRecordStoreBtreeRecoveryUnit::notifyInsert( OperationContext* ctx,
                                                         HeapRecordStoreBtree* rs,
                                                         const DiskLoc& loc ) {
        if ( !ctx )
            return;

        HeapRecordStoreBtreeRecoveryUnit* ru =
            dynamic_cast<HeapRecordStoreBtreeRecoveryUnit*>( ctx->recoveryUnit() );

        if ( !ru )
            return;

        ru->notifyInsert( rs, loc );
    }
コード例 #2
0
void HeapRecordStoreBtreeRecoveryUnit::notifyInsert(OperationContext* ctx,
                                                    HeapRecordStoreBtree* rs,
                                                    const RecordId& loc) {
    if (!ctx)
        return;

    // This dynamic_cast has semantics, should change ideally.
    HeapRecordStoreBtreeRecoveryUnit* ru =
        dynamic_cast<HeapRecordStoreBtreeRecoveryUnit*>(ctx->recoveryUnit());

    if (!ru)
        return;

    ru->notifyInsert(rs, loc);
}