From ffdd2eaacbfeae521b80c38760edd8e76be5f04f Mon Sep 17 00:00:00 2001 From: Glauber Costa Date: Mon, 6 Jul 2015 09:03:32 -0400 Subject: [PATCH] query_options: use version::native_protocol() for version Now that we have it, we can reuse here instead of hard coding the number 3. Signed-off-by: Glauber Costa --- cql3/query_options.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cql3/query_options.cc b/cql3/query_options.cc index 5ea5e491f5..c9b7232a28 100644 --- a/cql3/query_options.cc +++ b/cql3/query_options.cc @@ -23,13 +23,14 @@ */ #include "query_options.hh" +#include "version.hh" namespace cql3 { thread_local const query_options::specific_options query_options::specific_options::DEFAULT{-1, {}, {}, api::missing_timestamp}; thread_local query_options query_options::DEFAULT{db::consistency_level::ONE, std::experimental::nullopt, - {}, false, query_options::specific_options::DEFAULT, 3, serialization_format::use_32_bit()}; + {}, false, query_options::specific_options::DEFAULT, version::native_protocol(), serialization_format::use_32_bit()}; query_options::query_options(std::vector values)