To create build:
cd /path/to/cpp-driver
mkdir build; cd build
cmake ../../cpp-driverTo build docs (in the 'build' folder):
make docTo create build:
cd /path/to/cpp-driver
mkdir build; cd build
cmake ../../cpp-driverTo build docs (in the 'build' folder):
make doc| /home/mpenick/cpp-driver/test/integration_tests/src/test_future_callbacks.cpp: In function ‘void {anonymous}::check_result_callback(CassFuture*, void*)’: | |
| /home/mpenick/cpp-driver/test/integration_tests/src/test_future_callbacks.cpp:73:31: error: conversion from ‘test_utils::CassResultPtr {aka test_utils::CassSharedPtr<const CassResult_>}’ to ‘bool’ is ambiguous | |
| /home/mpenick/cpp-driver/test/integration_tests/src/test_future_callbacks.cpp:71:29: note: candidates are: | |
| /home/mpenick/cpp-driver/test/integration_tests/src/test_utils.hpp:170:3: note: test_utils::CassSharedPtr<T>::operator T*() const [with T = const CassResult_] | |
| /usr/include/boost/smart_ptr/detail/operator_bool.hpp:52:5: note: boost::shared_ptr<T>::operator boost::shared_ptr<T>::unspecified_bool_type() const [with T = const CassResult_, boost::shared_ptr<T>::unspecified_bool_type = const CassResult_* boost::shared_ptr<const CassResult_>::*, boost::shared_ptr<T>::element_type = const CassResult_] | |
| /home/mpenick/cpp-driver/test/integration_tests/src/te |
| int load_private_key(const char* file, CassSsl* ssl) { | |
| CassError rc; | |
| char* cert; | |
| long cert_size; | |
| FILE *in = fopen(file, "rb"); | |
| if (in == NULL) { | |
| fprintf(stderr, "Error loading private key file '%s'\n", file); | |
| return 0; | |
| } |
| #include <assert.h> | |
| #include <string.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <uv.h> | |
| #include "cassandra.h" | |
| #define USE_COMPOUND_PARTITION_KEY 0 |
| #!/bin/bash | |
| CLUSTER_NAME=oom | |
| NUM_NODES=10 | |
| LOW_MEM_NODES=5 | |
| RF=3 | |
| function prepend { | |
| cat $1 | pbcopy && echo -e "$2" > $1 && pbpaste >> $1 | |
| } |
| package mikep.perf; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.concurrent.ExecutionException; | |
| import com.datastax.driver.core.BoundStatement; | |
| import com.datastax.driver.core.Cluster; | |
| import com.datastax.driver.core.PreparedStatement; | |
| import com.datastax.driver.core.ResultSetFuture; |
| /* | |
| Copyright (c) 2014 DataStax | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
| #!/bin/bash | |
| while true | |
| do | |
| r=$(( ( RANDOM % 100 ) + 1 )) | |
| if [[ "$r" -gt "0" && "$r" -lt "11" ]]; then | |
| echo "dropping 192.168.1.112" | |
| iptables -A INPUT -d 192.168.1.112 -p tcp --destination-port 9042 -j DROP | |
| elif [[ "$r" -gt "10" && "$r" -lt "21" ]]; then | |
| echo "dropping 192.168.1.113" |
| #!/bin/bash | |
| RUN="/usr/bin/valgrind.bin --tool=memcheck test/integration_tests/cassandra_integration_tests" | |
| #RUN="/usr/bin/valgrind --leak-check=full --tool=memcheck test/integration_tests/cassandra_integration_tests" | |
| #RUN="test/integration_tests/cassandra_integration_tests" | |
| function run_test() { | |
| echo -e "$(tput setaf 3)#### Running filter: '$1' ####$(tput sgr 0)"; | |
| #export DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib |