fix empty field bug in threaded version

This commit is contained in:
Bernhard Amann 2012-02-23 14:36:04 -08:00
parent 93fac7a4be
commit d81607c3e9

View file

@ -1547,6 +1547,7 @@ HashKey* Manager::HashValues(const int num_elements, const Value* const *vals) {
for ( int i = 0; i < num_elements; i++ ) {
const Value* val = vals[i];
if ( val->present )
length += GetValueLength(val);
}
@ -1560,6 +1561,7 @@ HashKey* Manager::HashValues(const int num_elements, const Value* const *vals) {
//memset(data, 0, length);
for ( int i = 0; i < num_elements; i++ ) {
const Value* val = vals[i];
if ( val->present )
position += CopyValue(data, position, val);
}