Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export class CliBusinessService {
const replyEncoding = checkHumanReadableCommands(`${command} ${args[0]}`) ? 'utf8' : undefined;
this.checkUnsupportedCommands(`${command} ${args[0]}`);

const reply = await this.cliTool.execCommand(clientOptions, command, args, replyEncoding);
namespace = this.cliTool.getRedisClientNamespace(clientOptions);
const reply = await this.cliTool.execCommand(clientOptions, command, args, replyEncoding);

this.logger.log('Succeed to execute redis CLI command.');
this.cliAnalyticsService.sendCommandExecutedEvent(
Expand Down Expand Up @@ -225,6 +225,8 @@ export class CliBusinessService {
const [command, ...args] = splitCliCommandLine(commandLine);
const replyEncoding = checkHumanReadableCommands(`${command} ${args[0]}`) ? 'utf8' : undefined;
this.checkUnsupportedCommands(`${command} ${args[0]}`);
namespace = this.cliTool.getRedisClientNamespace(clientOptions);

const result = await this.cliTool.execCommandForNodes(
clientOptions,
command,
Expand All @@ -233,7 +235,6 @@ export class CliBusinessService {
replyEncoding,
);

namespace = this.cliTool.getRedisClientNamespace(clientOptions);
return result.map((nodeExecReply) => {
this.cliAnalyticsService.sendClusterCommandExecutedEvent(
clientOptions.instanceId,
Expand Down