bug(server): command stats show origin command name (#1761)

the bug: when command is renamed we show the rename command in command
stats
the fix: print the origin command name in command stats

Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
adiholden 2023-08-29 14:53:44 +03:00 committed by GitHub
parent b9a8dabb50
commit d964325f93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,7 +156,7 @@ class CommandRegistry {
auto src = k_v.second.GetStats(thread_index);
if (src.first == 0)
continue;
cb(k_v.first, src);
cb(k_v.second.name(), src);
}
}
};