MS-415 Add command tasktable to dump all tasktables

Former-commit-id: 7ce1dedf36d020668af2bcaafa66b5232d4c18a5
pull/191/head
wxyu 2019-08-24 16:39:47 +08:00
parent 2d9762afce
commit 14b2254060
2 changed files with 6 additions and 1 deletions

View File

@ -52,6 +52,7 @@ Please mark all change in change log and use the ticket from JIRA.
- MS-413 - Remove thrift dependency
- MS-410 - Add resource config comment
- MS-414 - Add TaskType in Scheduler::Task
- MS-415 - Add command tasktable to dump all tasktables
## New Feature
- MS-343 - Implement ResourceMgr

View File

@ -13,6 +13,7 @@
#include "version.h"
#include "GrpcMilvusServer.h"
#include "db/Utils.h"
#include "scheduler/SchedInst.h"
#include "src/server/Server.h"
@ -753,7 +754,10 @@ ServerError
CmdTask::OnExecute() {
if (cmd_ == "version") {
result_ = MILVUS_VERSION;
} else {
} else if (cmd_ == "tasktable") {
result_ = engine::ResMgrInst::GetInstance()->DumpTaskTables();
}
else {
result_ = "OK";
}