alternator: fix JSON in DescribeTable response

The structure's name in DescribeTable's output is supposed to be called
"Table", not "TableDescription". Putting in the wrong place caused the
driver's table creation waiters to fail.

Signed-off-by: Nadav Har'El <nyh@scylladb.com>
This commit is contained in:
Nadav Har'El
2019-05-05 18:54:31 +03:00
parent 9fbf601f44
commit 3600a096be

View File

@@ -147,7 +147,7 @@ future<json::json_return_type> executor::describe_table(sstring content) {
// maybe for TableId or TableArn use schema.id().to_sstring().c_str();
// Of course, the whole schema is missing!
Json::Value response(Json::objectValue);
response["TableDescription"] = std::move(table_description);
response["Table"] = std::move(table_description);
elogger.trace("returning {}", response.toStyledString());
return make_ready_future<json::json_return_type>(make_jsonable(std::move(response)));
}