MCPcopy Create free account
hub / github.com/baidu/tera / ObserveCell

Method ObserveCell

src/observer/executor/scanner_impl.cc:671–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669}
670
671void ScannerImpl::ObserveCell(std::shared_ptr<NotifyCell> notify_cell) {
672 observer_threads_->AddTask([=](int64_t) {
673 Notification* notification = GetNotification(notify_cell);
674 notify_cell->observer->OnNotify(notify_cell->notify_transaction.get(), tera_client_.get(),
675 notify_cell->observed_column.table_name,
676 notify_cell->observed_column.family,
677 notify_cell->observed_column.qualifier, notify_cell->row,
678 notify_cell->value, notify_cell->timestamp, notification);
679 total_counter_.Inc();
680 });
681}
682
683void ScannerImpl::ValidateAckConfict(RowReader* ack_reader) {
684 NotificationContext* context = (NotificationContext*)(ack_reader->GetContext());

Callers

nothing calls this directly

Calls 5

GetNotificationFunction · 0.85
AddTaskMethod · 0.80
IncMethod · 0.80
OnNotifyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected