acelyc111 commented on a change in pull request #3339: [tablet] A small
refactor on class Tablet
URL: https://github.com/apache/incubator-doris/pull/3339#discussion_r409993014
##########
File path: be/src/olap/tablet.cpp
##########
@@ -135,16 +130,12 @@ OLAPStatus Tablet::set_tablet_state(TabletState state) {
// should save tablet meta to remote meta store
// if it's a primary replica
-OLAPStatus Tablet::save_meta() {
- OLAPStatus res = _tablet_meta->save_meta(_data_dir);
- if (res != OLAP_SUCCESS) {
- LOG(FATAL) << "fail to save tablet_meta. res=" << res << ", root=" <<
_data_dir->path();
- }
+void Tablet::save_meta() {
+ auto res = _tablet_meta->save_meta(_data_dir);
+ CHECK_EQ(res, OLAP_SUCCESS) << "fail to save tablet_meta. res=" << res <<
", root=" << _data_dir->path();
Review comment:
> CHECK_EQ takes no effect on release version.
Do you mean **D**CHECK_EQ takes no effect on release version?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]