mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
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
This commit is contained in:
parent
e725b4e048
commit
9197483c86
3 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue