mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2024-11-25 00:53:43 +00:00
Set client name in Redis to dindexer_v0.1.5
This commit is contained in:
parent
2a696aa62a
commit
423effa6cb
1 changed files with 3 additions and 2 deletions
|
@ -20,6 +20,7 @@
|
|||
#include "backends/exposed_functions.hpp"
|
||||
#include "backends/backend_version.hpp"
|
||||
#include "dindexerConfig.h"
|
||||
#include "helpers/stringize.h"
|
||||
#include <utility>
|
||||
#include <yaml-cpp/yaml.h>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
@ -140,8 +141,8 @@ namespace dindb {
|
|||
|
||||
m_redis.connect();
|
||||
if (m_redis.is_connected() and m_database > 0) {
|
||||
const std::string command = "SELECT " + lexical_cast<std::string>(m_database);
|
||||
m_redis.run(command.c_str());
|
||||
m_redis.run("SELECT", lexical_cast<std::string>(m_database));
|
||||
m_redis.run("CLIENT", "SETNAME", PROGRAM_NAME "_v" STRINGIZE(VERSION_MAJOR) "." STRINGIZE(VERSION_MINOR) "." STRINGIZE(VERSION_PATCH));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue