Skip to content

Commit

Permalink
feat(tianmu):Improve the readbility of stonedb.(#11)
Browse files Browse the repository at this point in the history
class member variable refactor:handler directory
  • Loading branch information
DandreChen committed Oct 27, 2022
1 parent 4fa57d0 commit 3752e21
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 148 deletions.
8 changes: 4 additions & 4 deletions storage/tianmu/handler/ha_my_tianmu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,20 @@ static int Tianmu_LoadData(THD *thd, sql_exchange *ex, TABLE_LIST *table_list, v

// returning true means 'to continue'
bool ha_my_tianmu_load(THD *thd, sql_exchange *ex, TABLE_LIST *table_list, void *arg) {
char tianmumsg[256] = {0};
char tianmu_msg[256] = {0};
int tianmu_errcode{0};

switch (static_cast<TianmuEngineReturnValues>(
Tianmu_LoadData(thd, ex, table_list, arg, tianmumsg, 256, tianmu_errcode))) {
Tianmu_LoadData(thd, ex, table_list, arg, tianmu_msg, 256, tianmu_errcode))) {
case TianmuEngineReturnValues::LD_CONTINUE:
return true;
case TianmuEngineReturnValues::LD_FAILED:
my_message(tianmu_errcode, tianmumsg, MYF(0));
my_message(tianmu_errcode, tianmu_msg, MYF(0));
[[fallthrough]];
case TianmuEngineReturnValues::LD_SUCCEED:
return false;
default:
my_message(tianmu_errcode, tianmumsg, MYF(0));
my_message(tianmu_errcode, tianmu_msg, MYF(0));
break;
}

Expand Down
Loading

0 comments on commit 3752e21

Please sign in to comment.