Skip to content

Commit 2bdfc7b

Browse files
author
Michael Fero
committed
Merge remote-tracking branch 'core/master' into 1.10.0_alpha_prep
2 parents 129b2bf + 9b30d67 commit 2bdfc7b

7 files changed

Lines changed: 19 additions & 11 deletions

File tree

cpp-driver/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,18 @@ if(CASS_BUILD_STATIC)
145145
endif()
146146
CassConfigureStatic("CASS")
147147

148+
# Set pkg_config required libraries
149+
set(PC_REQUIRED_LIBS "libuv")
150+
if (CASS_USE_OPENSSL)
151+
set(PC_REQUIRED_LIBS "${PC_REQUIRED_LIBS} openssl")
152+
endif()
153+
154+
# Update the test flags to indicate the use of the static library
155+
if(CASS_USE_STATIC_LIBS)
156+
set(TEST_CXX_FLAGS "${TEST_CXX_FLAGS} -DCASS_STATIC")
157+
set(CASS_TEST_CXX_FLAGS "${CASS_TEST_CXX_FLAGS} -DCASS_STATIC")
158+
endif()
159+
148160
set_property(TARGET ${PROJECT_LIB_NAME_STATIC} PROPERTY FOLDER "Driver/Cassandra")
149161
endif()
150162

cpp-driver/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ specific language governing permissions and limitations under the License.
184184
[DSE C/C++ driver]: http://docs.datastax.com/en/developer/cpp-driver-dse/latest
185185
[DataStax Enterprise]: http://www.datastax.com/products/datastax-enterprise
186186
[Examples]: examples/
187-
[download server]: http://downloads.datastax.com/cpp-driver
187+
[download server]: http://downloads.datastax.com/cpp-driver/
188188
[GitHub]: https://github.com/datastax/cpp-driver
189189
[cpp-driver-compatability-matrix]: https://docs.datastax.com/en/developer/driver-matrix/doc/cppDrivers.html#cpp-drivers
190190
[Home]: http://docs.datastax.com/en/developer/cpp-driver/latest

cpp-driver/packaging/cassandra_static.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ includedir=@includedir@
66
Name: cassandra
77
Description: A C/C++ client driver for Apache Cassandra
88
Version: @version@
9-
Requires: libuv
9+
Requires: @PC_REQUIRED_LIBS@
1010
Libs: -L${libdir} -l@PROJECT_LIB_NAME_STATIC@ -lstdc++
1111
Cflags:
1212
URL: https://github.com/datastax/cpp-driver/

cpp-driver/src/deque.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ class Deque : public std::deque<T, internal::Allocator<T> > {
2828
template <class InputIt>
2929
Deque(InputIt first, InputIt last, const Allocator& alloc = Allocator())
3030
: std::deque<T, Allocator>(first, last, alloc) {}
31-
32-
Deque(const Deque& other)
33-
: std::deque<T, Allocator>(other) {}
3431
};
3532

3633
}} // namespace datastax::internal

cpp-driver/src/map.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ class Map
2525
explicit Map(const Compare& compare = Compare(), const Allocator& alloc = Allocator())
2626
: std::map<K, V, Compare, Allocator>(compare, alloc) {}
2727

28-
Map(const Map& other)
29-
: std::map<K, V, Compare, Allocator>(other) {}
30-
3128
template <class InputIt>
3229
Map(InputIt first, InputIt last, const Compare& compare = Compare(),
3330
const Allocator& alloc = Allocator())

cpp-driver/src/random.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ Random::~Random() { uv_mutex_destroy(&mutex_); }
5353

5454
uint64_t Random::next(uint64_t max) {
5555
ScopedMutex l(&mutex_);
56+
57+
if (max == 0) {
58+
return 0;
59+
}
60+
5661
const uint64_t limit = CASS_UINT64_MAX - CASS_UINT64_MAX % max;
5762
uint64_t r;
5863
do {

cpp-driver/src/vector.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ class Vector
2828
explicit Vector(size_t count, const T& value = T())
2929
: std::vector<T, Allocator>(count, value) {}
3030

31-
Vector(const Vector& other)
32-
: std::vector<T, Allocator>(other) {}
33-
3431
template <class InputIt>
3532
Vector(InputIt first, InputIt last)
3633
: std::vector<T, Allocator>(first, last) {}

0 commit comments

Comments
 (0)