Exemple #1
0
 bool callback(voltdb::InvocationResponse response) throw (voltdb::Exception) {  // NOLINT
   if (response.failure()) {
     LOG(ERROR) << "Failed to insert file: " << response.toString();
     return false;
   }
   return true;
 }
    bool callback(voltdb::InvocationResponse response) throw (voltdb::Exception) {
        m_count--;

        //Print the error response if there was a problem
        if (response.failure()) {
            std::cout << response.toString();
        }

        //If the callback has been invoked count times, return true to break event loop
        if (m_count == 0) {
            return true;
        } else {
            return false;
        }
    }