| 580 | } |
| 581 | |
| 582 | bool ScannerImpl::CheckTransactionTypeLegalForTable(TransactionType transaction_type, |
| 583 | TransactionType table_type) { |
| 584 | if (transaction_type == table_type) { |
| 585 | return true; |
| 586 | } |
| 587 | |
| 588 | if (transaction_type == kNoneTransaction && table_type == kSingleRowTransaction) { |
| 589 | return true; |
| 590 | } |
| 591 | |
| 592 | return false; |
| 593 | } |
| 594 | |
| 595 | TransactionType ScannerImpl::GetTableTransactionType(tera::Table* table) { |
| 596 | tera::ErrorCode err; |