gavinchou commented on code in PR #54946:
URL: https://github.com/apache/doris/pull/54946#discussion_r2284481890
##########
cloud/src/meta-store/meta_reader.cpp:
##########
@@ -35,6 +35,7 @@ namespace doris::cloud {
TxnErrorCode MetaReader::get_table_version(int64_t table_id, Versionstamp*
table_version,
bool snapshot) {
+ CHECK(txn_kv_) << "TxnKv must be set before calling";
Review Comment:
```suggestion
DCHECK()
if (!txn_kv_) return error;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]