xy720 commented on code in PR #32738:
URL: https://github.com/apache/doris/pull/32738#discussion_r1542275426


##########
cloud/test/recycler_test.cpp:
##########
@@ -309,6 +309,21 @@ static int create_version_kv(TxnKv* txn_kv, int64_t 
table_id, int64_t partition_
     return 0;
 }
 
+static int create_table_version_kv(TxnKv* txn_kv, int64_t table_id) {
+    auto key = table_version_key({instance_id, db_id, table_id});
+    std::string val(sizeof(int64_t), 0);
+    *reinterpret_cast<int64_t*>(val.data()) = (int64_t) 1;
+    std::unique_ptr<Transaction> txn;
+    if (txn_kv->create_txn(&txn) != TxnErrorCode::TXN_OK) {
+        return -1;
+    }
+    txn->put(key, val);
+    if (txn->commit() != TxnErrorCode::TXN_OK) {
+        return -1;

Review Comment:
   This method is only used for unit test.



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to