bobhan1 commented on code in PR #51320:
URL: https://github.com/apache/doris/pull/51320#discussion_r2111989512


##########
be/src/cloud/cloud_tablet.cpp:
##########
@@ -146,6 +146,13 @@ Status CloudTablet::merge_rowsets_schema() {
 // There are only two tablet_states RUNNING and NOT_READY in cloud mode
 // This function will erase the tablet from `CloudTabletMgr` when it can't 
find this tablet in MS.
 Status CloudTablet::sync_rowsets(const SyncOptions& options, SyncRowsetStats* 
stats) {
+    int64_t duration_ns {0};
+    SCOPED_RAW_TIMER(&duration_ns);
+    Defer defer {[&]() {

Review Comment:
   defer must be before `SCOPED_RAW_TIMER(&duration_ns);`



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