Commit 9197483c authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1125 refs[t:1125] brtdump upgraded to support XIDS in messages

git-svn-id: file:///svn/toku/tokudb@13968 c7de825b-a66e-492c-adef-691d508d4ae1
parent e725b4e0
......@@ -115,7 +115,9 @@ dump_node (int f, BLOCKNUM blocknum, struct brt_header *h) {
}
printf("HUH?");
ok:
printf(" xid=%"PRIu64" ", xids_get_innermost_xid(xids));
printf(" xid=");
xids_fprintf(stdout, xids);
printf(" ");
print_item(key, keylen);
if (datalen>0) {
printf(" ");
......
......@@ -209,3 +209,14 @@ void wbuf_xids(struct wbuf *wb, XIDS xids) {
}
}
void
xids_fprintf(FILE* fp, XIDS xids) {
u_int8_t index;
fprintf(fp, "[|%u| ", xids_get_num_xids(xids));
for (index = 0; index < xids_get_num_xids(xids); index++) {
if (index) fprintf(fp, ",");
fprintf(fp, "%"PRIx64, xids_get_xid(xids, index));
}
fprintf(fp, "]");
}
......@@ -51,4 +51,6 @@ unsigned char *xids_get_end_of_array(XIDS xids);
void wbuf_xids(struct wbuf *wb, XIDS xids);
void xids_fprintf(FILE* fp, XIDS xids);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment