Print table of current transactions in tabular format. */ (pat) In version 4 this dumps the MM layer.
| 720 | /** Print table of current transactions in tabular format. */ |
| 721 | // (pat) In version 4 this dumps the MM layer. |
| 722 | static CLIStatus transactions(int argc, char** argv, ostream& os) |
| 723 | { |
| 724 | map<string,string> options = cliParse(argc,argv,os,"purge"); |
| 725 | if (argc>1) { |
| 726 | return BAD_NUM_ARGS; |
| 727 | } |
| 728 | |
| 729 | TranEntry::header(os); |
| 730 | size_t count = gStaleTransactionTable.dumpTable(os); |
| 731 | os << endl << count << " completed transaction records in table" << endl; |
| 732 | |
| 733 | if (options.count("purge")) { |
| 734 | gStaleTransactionTable.clearTable(); |
| 735 | os << "records purged" << endl; |
| 736 | } |
| 737 | |
| 738 | return SUCCESS; |
| 739 | } |
| 740 | |
| 741 | |
| 742 |
nothing calls this directly
no test coverage detected