mirror of https://github.com/Icinga/icinga2.git
RedisWriter: Pack objects consistently for hashing
This commit is contained in:
parent
60a5a14aa2
commit
b32b81d957
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
#include "redis/rediswriter.hpp"
|
#include "redis/rediswriter.hpp"
|
||||||
#include "icinga/customvarobject.hpp"
|
#include "icinga/customvarobject.hpp"
|
||||||
#include "base/json.hpp"
|
#include "base/object-packer.hpp"
|
||||||
#include "base/logger.hpp"
|
#include "base/logger.hpp"
|
||||||
#include "base/serializer.hpp"
|
#include "base/serializer.hpp"
|
||||||
#include "base/tlsutility.hpp"
|
#include "base/tlsutility.hpp"
|
||||||
|
@ -88,6 +88,6 @@ String RedisWriter::HashValue(const Value& value)
|
||||||
else
|
else
|
||||||
temp = value;
|
temp = value;
|
||||||
|
|
||||||
return SHA1(JsonEncode(temp));
|
return SHA1(PackObject(temp));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue