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

Method CheckTransactionTypeLegalForTable

src/observer/executor/scanner_impl.cc:582–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582bool 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
595TransactionType ScannerImpl::GetTableTransactionType(tera::Table* table) {
596 tera::ErrorCode err;

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64