#include "treeserver.h"
#include "commands.h"
-CmdResult CommandSInfo::HandleServer(TreeServer* server, std::vector<std::string>& params)
+CmdResult CommandSInfo::HandleServer(TreeServer* server, CommandBase::Params& params)
{
const std::string& key = params.front();
const std::string& value = params.back();
{
server->SetVersion(value);
}
+ else if (key == "rawversion")
+ {
+ server->SetRawVersion(value);
+ }
else if (key == "desc")
{
// Only sent when the description of a server changes because of a rehash; not sent on burst
}
CommandSInfo::Builder::Builder(TreeServer* server, const char* key, const std::string& val)
- : CmdBuilder(server->GetID(), "SINFO")
+ : CmdBuilder(server, "SINFO")
{
push(key).push_last(val);
}