src/client/console.hpp
static void run_gsck(Proxy *proxy, int argc, char **argv)
{
    // use the master proxy thread to run gstore checker
    if (!MASTER(proxy))
        return;

    // parse command
    variables_map gsck_vm;
    try {
        store(parse_command_line(argc, argv, gsck_desc), gsck_vm);
    } catch (...) {
        fail_to_parse(proxy, argc, argv);
        return;
    }
    notify(gsck_vm);

    // parse options
    if (gsck_vm.count("help")) {
        std::cout << gsck_desc;
        return;
    }

    bool i_enable = gsck_vm.count("-i");
    bool n_enable = gsck_vm.count("-n");

    // no option means enable all
    if (!i_enable && !n_enable) {
        i_enable = true;
        n_enable = true;
    }

    /// do gsck
    Monitor monitor;
    GStoreCheck reply;
    int ret = proxy->gstore_check(reply, monitor, i_enable, n_enable);
    if (ret != 0) {
        logstream(LOG_ERROR) << "Data integrity failed in graph store"
                             << " (" << ret << ")" << LOG_endl;
        return;
    }
    monitor.print_latency();
}
/**
 * run the 'gsck' command
 * usage:
 * gsck [options]
 *   -i   check from index key/value pair to normal key/value pair
 *   -n   check from normal key/value pair to index key/value pair
 */
run the 'gsck' command
usage:
gsck [options]
-i   check from index key/value pair to normal key/value pair
-n   check from normal key/value pair to index key/value pair
run the ' gsck ' command usage : gsck [ options ] - i check from index key / value pair to normal key / value pair - n check from normal key / value pair to index key / value pair
static void run_gsck(Proxy *proxy, int argc, char **argv)
{
    if (!MASTER(proxy))
        return;
    variables_map gsck_vm;
    try {
        store(parse_command_line(argc, argv, gsck_desc), gsck_vm);
    } catch (...) {
        fail_to_parse(proxy, argc, argv);
        return;
    }
    notify(gsck_vm);
    if (gsck_vm.count("help")) {
        std::cout << gsck_desc;
        return;
    }
    bool i_enable = gsck_vm.count("-i");
    bool n_enable = gsck_vm.count("-n");
    if (!i_enable && !n_enable) {
        i_enable = true;
        n_enable = true;
    }
    Monitor monitor;
    GStoreCheck reply;
    int ret = proxy->gstore_check(reply, monitor, i_enable, n_enable);
    if (ret != 0) {
        logstream(LOG_ERROR) << "Data integrity failed in graph store"
                             << " (" << ret << ")" << LOG_endl;
        return;
    }
    monitor.print_latency();
}
static void run_gsck ( Proxy * proxy , int argc , char * * argv ) { if ( ! MASTER ( proxy ) ) return ; variables_map gsck_vm ; try { store ( parse_command_line ( argc , argv , gsck_desc ) , gsck_vm ) ; } catch ( ... ) { fail_to_parse ( proxy , argc , argv ) ; return ; } notify ( gsck_vm ) ; if ( gsck_vm . count ( " " ) ) { std :: cout << gsck_desc ; return ; } bool i_enable = gsck_vm . count ( " " ) ; bool n_enable = gsck_vm . count ( " " ) ; if ( ! i_enable && ! n_enable ) { i_enable = true ; n_enable = true ; } Monitor monitor ; GStoreCheck reply ; int ret = proxy -> gstore_check ( reply , monitor , i_enable , n_enable ) ; if ( ret != 0 ) { logstream ( LOG_ERROR ) << " " << " " << ret << " " << LOG_endl ; return ; } monitor . print_latency ( ) ; }
run the 'gsck' command
 usage:
 gsck [options]
   -i   check from index key/value pair to normal key/value pair
   -n   check from normal key/value pair to index key/value pair
run the ' gsck ' command usage : gsck [ options ] - i check from index key / value pair to normal key / value pair - n check from normal key / value pair to index key / value pair
// use the master proxy thread to run gstore checker // parse command // parse options // no option means enable all /// do gsck