cluster: Speed up log replays.

This commit is contained in:
Gunnar Beutner 2013-09-06 09:59:16 +02:00
parent 0755d1b9d1
commit 2daa2cae85
1 changed files with 2 additions and 3 deletions

View File

@ -221,7 +221,7 @@ void ClusterComponent::RelayMessage(const Endpoint::Ptr& except, const Dictionar
if (except)
pmessage->Set("except", except->GetName());
pmessage->Set("message", message);
pmessage->Set("message", Value(message).Serialize());
ObjectLock olock(this);
if (m_LogFile) {
@ -360,8 +360,7 @@ void ClusterComponent::ReplayLog(const Endpoint::Ptr& endpoint, const Stream::Pt
if (pmessage->Get("except") == endpoint->GetName())
continue;
String json = Value(pmessage->Get("message")).Serialize();
NetString::WriteStringToStream(stream, json);
NetString::WriteStringToStream(stream, pmessage->Get("message"));
count++;
}