Change st_cli to pointer

This commit is contained in:
Vitaliy Filippov
2026-06-13 19:56:06 +03:00
parent 80fa3094b3
commit 26fb08d7da
46 changed files with 503 additions and 501 deletions
+1 -1
View File
@@ -527,7 +527,7 @@ void kv_cli_t::handle_cmd(const std::vector<std::string> & cmd, std::function<vo
{
inode_id = 0;
name = trim(name);
for (auto & ic: cli->st_cli.inode_config)
for (auto & ic: cli->st_cli->inode_config)
{
if (ic.second.name == name)
{
+2 -2
View File
@@ -510,8 +510,8 @@ void kv_db_t::open(inode_t inode_id, json11::Json cfg, std::function<void(int)>
cb(-EINVAL);
return;
}
auto pool_it = cli->st_cli.pool_config.find(INODE_POOL(inode_id));
if (pool_it == cli->st_cli.pool_config.end())
auto pool_it = cli->st_cli->pool_config.find(INODE_POOL(inode_id));
if (pool_it == cli->st_cli->pool_config.end())
{
cb(-EINVAL);
return;