Skip to content

Commit

Permalink
Updated protocol version to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenick committed Aug 24, 2015
1 parent 578b46d commit 75ccd92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/cassandra.h
Original file line number Diff line number Diff line change
Expand Up @@ -738,10 738,10 @@ cass_cluster_set_ssl(CassCluster* cluster,
CassSsl* ssl);

/**
* Sets the protocol version. This will automatically downgrade if to
* protocol version 1.
* Sets the protocol version. This will automatically downgrade to the lowest
* supported protocol version.
*
* <b>Default:</b> 2
* <b>Default:</b> 4
*
* @public @memberof CassCluster
*
Expand Down
2 changes: 1 addition & 1 deletion src/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 39,7 @@ class Config {

Config()
: port_(9042)
, protocol_version_(3)
, protocol_version_(4)
, thread_count_io_(1)
, queue_size_io_(8192)
, queue_size_event_(8192)
Expand Down
2 changes: 1 addition & 1 deletion src/handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 27,7 @@
namespace cass {

int32_t Handler::encode(int version, int flags, BufferVec* bufs) {
if (version < 1 || version > 3) {
if (version < 1 || version > 4) {
return Request::ENCODE_ERROR_UNSUPPORTED_PROTOCOL;
}

Expand Down

0 comments on commit 75ccd92

Please sign in to comment.