Skip to content

Commit a3f0bcb

Browse files
DemetrisChravsej
andauthored
CXXCBC-482: Range scan orchestrator should use best effort retry strategy by default (#542)
Co-authored-by: Sergey Avseyev <[email protected]>
1 parent 18e0681 commit a3f0bcb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/range_scan_orchestrator_options.hxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "range_scan_options.hxx"
1919
#include "timeout_defaults.hxx"
2020

21+
#include <couchbase/best_effort_retry_strategy.hxx>
2122
#include <couchbase/mutation_token.hxx>
2223
#include <couchbase/retry_strategy.hxx>
2324

@@ -51,7 +52,7 @@ struct range_scan_orchestrator_options {
5152
std::uint32_t batch_byte_limit{ range_scan_continue_options::default_batch_byte_limit };
5253
std::uint16_t concurrency{ default_concurrency };
5354

54-
std::shared_ptr<couchbase::retry_strategy> retry_strategy{ nullptr };
55+
std::shared_ptr<couchbase::retry_strategy> retry_strategy{ make_best_effort_retry_strategy() };
5556
std::chrono::milliseconds timeout{ timeout_defaults::key_value_scan_timeout };
5657
std::shared_ptr<couchbase::tracing::request_span> parent_span{};
5758
};

0 commit comments

Comments
 (0)