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 ); }
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); }