30int main(
int argc,
char** argv) {
33 "<config path> <private key path> <cert_file> <min_seq> <max_seq>\n");
36 std::string config_file = argv[1];
37 std::string private_key_file = argv[2];
38 std::string cert_file = argv[3];
39 uint64_t min_seq = atoi(argv[4]);
40 uint64_t max_seq = atoi(argv[5]);
42 ReplicaInfo self_info = GenerateReplicaInfo(0,
"127.0.0.1", 88888);
44 std::unique_ptr<ResDBConfig> config =
45 GenerateResDBConfig(config_file, private_key_file, cert_file, self_info);
48 auto resp = client.
GetTxn(min_seq, max_seq);
49 absl::StatusOr<std::vector<std::pair<uint64_t, std::string>>> GetTxn(
50 uint64_t min_seq, uint64_t max_seq);
52 LOG(ERROR) <<
"get replica state fail";
55 for (
auto& txn : *resp) {
56 LOG(ERROR) <<
"seq:" << txn.first <<
" txn:" << txn.second;