MCPcopy Create free account
hub / github.com/apache/trafficserver / cmd_list

Function cmd_list

src/traffic_server/traffic_server.cc:763–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761#define CMD_IN_PROGRESS 2 // task not completed. don't exit
762
763int
764cmd_list(char * /* cmd ATS_UNUSED */)
765{
766 printf("LIST\n\n");
767
768 // show hostdb size
769
770 int h_size = 120000;
771 REC_ReadConfigInteger(h_size, "proxy.config.hostdb.size");
772 printf("Host Database size:\t%d\n", h_size);
773
774 // show cache config information....
775
776 Note("Cache Storage:");
777 Store tStore;
778 Result result = tStore.read_config();
779
780 if (result.failed()) {
781 Note("Failed to read cache storage configuration: %s", result.message());
782 return CMD_FAILED;
783 } else {
784 tStore.write_config_data(fileno(stdout));
785 return CMD_OK;
786 }
787}
788
789/** Parse the given string and skip the first word.
790 *

Callers

nothing calls this directly

Calls 4

read_configMethod · 0.80
failedMethod · 0.80
write_config_dataMethod · 0.80
messageMethod · 0.45

Tested by

no test coverage detected