Skip to content

Commit

Permalink
fix(interactive): Fix argument passing in hqps_app (alibaba#3522)
Browse files Browse the repository at this point in the history
Correctly parsing request payload.
  • Loading branch information
zhanglei1949 authored Jan 31, 2024
1 parent dc0bee6 commit 7704e9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flex/engines/graph_db/app/hqps_app.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ bool HQPSAdhocApp::Query(Decoder& input, Encoder& output) {
<< input.size();
return false;
}
std::string input_lib_path = std::string(input.get_string());
std::string_view str_view(input.data(), input.size());
std::string input_lib_path = std::string(str_view);
auto app_factory = std::make_shared<SharedLibraryAppFactory>(input_lib_path);
AppWrapper app_wrapper; // wrapper should be destroyed before the factory

Expand Down

0 comments on commit 7704e9a

Please sign in to comment.