Skip to content

Commit

Permalink
*: fix read system table without key when tls is enable (#7305)
Browse files Browse the repository at this point in the history
close #6941
  • Loading branch information
Lloyd-Pottiger authored Apr 18, 2023
1 parent e586a13 commit b9f1fac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dbms/src/Flash/FlashService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,8 +836,9 @@ grpc::Status FlashService::GetTiFlashSystemTable(

try
{
ContextPtr ctx;
std::tie(ctx, std::ignore) = createDBContext(grpc_context);
auto [ctx, status] = createDBContext(grpc_context);
if (!status.ok())
return status;
ctx->setDefaultFormat("JSONCompact");
ReadBufferFromString in_buf(request->sql());
MemoryWriteBuffer out_buf;
Expand Down

0 comments on commit b9f1fac

Please sign in to comment.