MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / transactions

Function transactions

CLI/CLI.cpp:722–739  ·  view source on GitHub ↗

Print table of current transactions in tabular format. */ (pat) In version 4 this dumps the MM layer.

Source from the content-addressed store, hash-verified

720/** Print table of current transactions in tabular format. */
721// (pat) In version 4 this dumps the MM layer.
722static 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

Callers

nothing calls this directly

Calls 3

cliParseFunction · 0.85
dumpTableMethod · 0.80
clearTableMethod · 0.80

Tested by

no test coverage detected