提交 d30c592f 编写于 作者: 羽飞's avatar 羽飞

opt logs

上级 f9ff026a
......@@ -314,7 +314,7 @@ std::string to_string(const LeafIndexNodeHandler &handler, const KeyPrinter &pri
ss << to_string((const IndexNodeHandler &)handler)
<< ",prev page:" << handler.prev_page()
<< ",next page:" << handler.next_page();
ss << ",values=[" << printer(handler.__key_at(0));
ss << ",values=[" << printer(handler.__key_at(0)) ;
for (int i = 1; i < handler.size(); i++) {
ss << "," << printer(handler.__key_at(i));
}
......
......@@ -143,11 +143,12 @@ public:
}
std::string operator() (const char *v) const {
std::string result = attr_printer_(v);
result.append(",");
std::stringstream ss;
ss << "{key:" << attr_printer_(v) << ",";
const RID *rid = (const RID *)(v + attr_printer_.attr_length());
return result.append(rid->to_string());
ss << "rid:{" << rid->to_string() << "}}";
return ss.str();
}
private:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册