1
0
Fork 0
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:
King_DuckZ 2016-06-14 19:10:10 +01:00
parent 2a696aa62a
commit 423effa6cb

View file

@ -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));
}
}