SWJTU-ZhangLei commented on code in PR #50314:
URL: https://github.com/apache/doris/pull/50314#discussion_r2059732964


##########
cloud/src/meta-service/meta_service_txn.cpp:
##########
@@ -2549,24 +2563,26 @@ void 
MetaServiceImpl::commit_txn(::google::protobuf::RpcController* controller,
     }
 
     TxnErrorCode err = TxnErrorCode::TXN_OK;
-    bool allow_txn_lazy_commit =
+    bool enable_txn_lazy_commit_feature =
             (request->has_is_2pc() && !request->is_2pc() && 
request->has_enable_txn_lazy_commit() &&
              request->enable_txn_lazy_commit() && 
config::enable_cloud_txn_lazy_commit);
 
-    if (!allow_txn_lazy_commit ||
-        (tmp_rowsets_meta.size() <= config::txn_lazy_commit_rowsets_thresold)) 
{
+    if (force_txn_lazy_commit() &&

Review Comment:
   done



##########
cloud/src/meta-service/meta_service_txn.cpp:
##########
@@ -2514,6 +2514,20 @@ void commit_txn_with_sub_txn(const CommitTxnRequest* 
request, CommitTxnResponse*
     response->mutable_txn_info()->CopyFrom(txn_info);
 } // end commit_txn_with_sub_txn
 
+static bool fuzzy_random() {
+    std::mt19937 gen {std::random_device {}()};

Review Comment:
   > return (steady_clock():now().count() & 0x01)
   
   done



-- 
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]

Reply via email to