| 593 | } |
| 594 | |
| 595 | TransactionType ScannerImpl::GetTableTransactionType(tera::Table* table) { |
| 596 | tera::ErrorCode err; |
| 597 | std::shared_ptr<Table> table_ptr; |
| 598 | table_ptr.reset(tera_client_->OpenTable(table->GetName(), &err)); |
| 599 | std::shared_ptr<TableImpl> table_impl( |
| 600 | static_cast<TableWrapper*>(table_ptr.get())->GetTableImpl()); |
| 601 | TableSchema schema = table_impl->GetTableSchema(); |
| 602 | |
| 603 | if (IsTransactionTable(schema)) { |
| 604 | std::set<std::string> gtxn_cfs; |
| 605 | FindGlobalTransactionCfs(schema, >xn_cfs); |
| 606 | if (gtxn_cfs.size() > 0) { |
| 607 | return kGlobalTransaction; |
| 608 | } |
| 609 | return kSingleRowTransaction; |
| 610 | } |
| 611 | return kNoneTransaction; |
| 612 | } |
| 613 | |
| 614 | void ScannerImpl::ValidateCellValue(RowReader* value_reader) { |
| 615 | std::unique_ptr<NotificationContext> context((NotificationContext*)(value_reader->GetContext())); |
nothing calls this directly
no test coverage detected