empiredan commented on code in PR #2172:
URL: 
https://github.com/apache/incubator-pegasus/pull/2172#discussion_r1910116913


##########
src/client/replication_ddl_client.cpp:
##########
@@ -1477,17 +1396,22 @@ void replication_ddl_client::end_meta_request(const 
rpc_response_task_ptr &callb
 dsn::error_code replication_ddl_client::get_app_envs(const std::string 
&app_name,
                                                      std::map<std::string, 
std::string> &envs)
 {
+    // Just match the table with the provided name exactly since we want to 
get the envs from
+    // a specific table.
     std::vector<::dsn::app_info> apps;
-    auto r = list_apps(dsn::app_status::AS_AVAILABLE, apps);
-    if (r != dsn::ERR_OK) {
-        return r;
+    const auto &result = list_apps(

Review Comment:
   OK, define `RETURN_EC_NOT_OK` to wrap it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to