Skip to content

Commit

Permalink
Merge pull request #142 from lbbniu/patch-3
Browse files Browse the repository at this point in the history
optimize doReserveDb drop table
  • Loading branch information
ruanshudong authored Feb 2, 2024
2 parents 25cbc47 + 03cdbe7 commit 219876c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PropertyServer/PropertyServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void PropertyServer::doReserveDb(const string path, TC_Config *pconf)
{
TLOGDEBUG(__FUNCTION__ << ", drop name:" << name << ", tableName: " << tableName << ", " << (name < tableName) << endl);

mysql.execute("drop table " + name);
mysql.execute("DROP TABLE IF EXISTS " + name);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion StatServer/StatServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void StatServer::doReserveDb(const string path, TC_Config *pconf)
{
TLOGDEBUG(__FUNCTION__ << ", drop name:" << name << ", tableName: " << tableName << ", " << (name < tableName) << endl);

mysql.execute("drop table " + name);
mysql.execute("DROP TABLE IF EXISTS " + name);
}
else
{
Expand Down

0 comments on commit 219876c

Please sign in to comment.