https://help.ubuntu.com/community/UpdatingADeb
====
| /* | |
| 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 |
| 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; |
| #!/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 | |
| } |
| #include <assert.h> | |
| #include <string.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <uv.h> | |
| #include "cassandra.h" | |
| #define USE_COMPOUND_PARTITION_KEY 0 |
| 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; | |
| } |
| /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 |
To create build:
cd /path/to/cpp-driver
mkdir build; cd build
cmake ../../cpp-driverTo build docs (in the 'build' folder):
make doc| /* | |
| This is free and unencumbered software released into the public domain. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. | |
| In jurisdictions that recognize copyright laws, the author or authors | |
| of this software dedicate any and all copyright interest in the |
| /* | |
| This is free and unencumbered software released into the public domain. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. | |
| In jurisdictions that recognize copyright laws, the author or authors | |
| of this software dedicate any and all copyright interest in the |