Changeset 745 for trunk/server/lib/tdb/tools/tdbtool.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/lib/tdb/tools/tdbtool.c
r456 r745 418 418 static void info_tdb(void) 419 419 { 420 int count;421 total_bytes = 0; 422 if ( (count = tdb_traverse(tdb, traverse_fn, NULL)) == -1)420 char *summary = tdb_summary(tdb); 421 422 if (!summary) { 423 423 printf("Error = %s\n", tdb_errorstr(tdb)); 424 else 425 printf("%d records totalling %d bytes\n", count, total_bytes); 424 } else { 425 printf("%s", summary); 426 free(summary); 427 } 426 428 } 427 429 … … 574 576 if (cmdname) { 575 577 #endif 576 577 578 if (cmdname && strlen(cmdname) == 0) { 578 579 mycmd = CMD_NEXT;
Note:
See TracChangeset
for help on using the changeset viewer.