From 97f0b64654b9555b7cc14d2b84e0d5bcd9ce0086 Mon Sep 17 00:00:00 2001 From: bjjwwang Date: Mon, 23 Aug 2021 13:31:40 +0000 Subject: [PATCH] fix --- core/general-server/op/general_dist_kv_infer_op.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/general-server/op/general_dist_kv_infer_op.cpp b/core/general-server/op/general_dist_kv_infer_op.cpp index 485e458a..f0fbc70e 100644 --- a/core/general-server/op/general_dist_kv_infer_op.cpp +++ b/core/general-server/op/general_dist_kv_infer_op.cpp @@ -113,7 +113,7 @@ int GeneralDistKVInferOp::inference() { } } rm_dup_keys.resize(rm_dup_keys_count); - VLOG(2) << "(logid=" << log_id << ") cube number of keys to look up: " << key_len << " after rm dup keys: "<< rm_dup_keys_count; + VLOG(1) << "(logid=" << log_id << ") cube number of keys to look up: " << key_len << " uniq keys: "<< rm_dup_keys_count; rec::mcube::CubeAPI *cube = rec::mcube::CubeAPI::instance(); std::vector table_names = cube->get_table_names(); if (table_names.size() == 0) { @@ -176,8 +176,8 @@ int GeneralDistKVInferOp::inference() { ++cube_val_idx; continue; } - //VLOG(3) << "(logid=" << log_id << ") cube key found: " << keys[cube_val_idx]; - memcpy(data_ptr, values[cube_val_idx].buff.data()+10, values[cube_val_idx].buff.size()-10); + VLOG(2) << "(logid=" << log_id << ") key: " << keys[cube_val_idx] << " , cube value len:" << cur_val->buff.size(); + memcpy(data_ptr, cur_val->buff.data()+10, cur_val->buff.size()-10); //VLOG(3) << keys[cube_val_idx] << ":" << data_ptr[0] << ", " << data_ptr[1] << ", " <