|
25 | 25 | #include "passthrough_transcoder.hxx" |
26 | 26 | #include "version.hxx" |
27 | 27 |
|
| 28 | +#define COUCHBASE_CXX_CLIENT_IGNORE_CORE_DEPRECATIONS |
28 | 29 | #include <core/cluster.hxx> |
29 | 30 | #include <core/error_context/analytics.hxx> |
30 | 31 | #include <core/error_context/search.hxx> |
31 | 32 | #include <core/error_context/view.hxx> |
32 | 33 | #include <core/logger/logger.hxx> |
33 | 34 | #include <core/management/bucket_settings.hxx> |
34 | 35 | #include <core/operations.hxx> |
| 36 | +#include <core/operations/document_view.hxx> |
35 | 37 | #include <core/operations/management/analytics.hxx> |
36 | 38 | #include <core/operations/management/bucket.hxx> |
37 | 39 | #include <core/operations/management/cluster_describe.hxx> |
@@ -3630,9 +3632,7 @@ zval_to_bucket_settings(const zval* bucket_settings) |
3630 | 3632 | return { e, {} }; |
3631 | 3633 | } |
3632 | 3634 |
|
3633 | | - if (auto e = cb_assign_integer( |
3634 | | - bucket.num_vbuckets, bucket_settings, "numVBuckets"); |
3635 | | - e.ec) { |
| 3635 | + if (auto e = cb_assign_integer(bucket.num_vbuckets, bucket_settings, "numVBuckets"); e.ec) { |
3636 | 3636 | return { e, {} }; |
3637 | 3637 | } |
3638 | 3638 |
|
@@ -3828,8 +3828,7 @@ cb_bucket_settings_to_zval( |
3828 | 3828 | } |
3829 | 3829 |
|
3830 | 3830 | if (bucket_settings.num_vbuckets.has_value()) { |
3831 | | - add_assoc_long( |
3832 | | - return_value, "numVBuckets", bucket_settings.num_vbuckets.value()); |
| 3831 | + add_assoc_long(return_value, "numVBuckets", bucket_settings.num_vbuckets.value()); |
3833 | 3832 | } |
3834 | 3833 |
|
3835 | 3834 | return {}; |
@@ -6067,6 +6066,9 @@ apply_options(couchbase::cluster_options& cluster_options, zval* options) -> cor |
6067 | 6066 | options::assign_boolean(ZEND_STRL("enableTcpKeepAlive"), key, value, [&](auto v) { |
6068 | 6067 | cluster_options.network().enable_tcp_keep_alive(v); |
6069 | 6068 | }); |
| 6069 | + options::assign_boolean(ZEND_STRL("enableLazyConnections"), key, value, [&](auto v) { |
| 6070 | + cluster_options.network().enable_lazy_connections(v); |
| 6071 | + }); |
6070 | 6072 | options::assign_boolean(ZEND_STRL("enableUnorderedExecution"), key, value, [&](auto v) { |
6071 | 6073 | cluster_options.behavior().enable_unordered_execution(v); |
6072 | 6074 | }); |
@@ -6223,7 +6225,8 @@ apply_options(couchbase::cluster_options& cluster_options, zval* options) -> cor |
6223 | 6225 | ZEND_HASH_FOREACH_END(); |
6224 | 6226 | } |
6225 | 6227 |
|
6226 | | - if (zend_binary_strcmp(ZSTR_VAL(key), ZSTR_LEN(key), ZEND_STRL("appTelemetryConfiguration")) == 0) { |
| 6228 | + if (zend_binary_strcmp( |
| 6229 | + ZSTR_VAL(key), ZSTR_LEN(key), ZEND_STRL("appTelemetryConfiguration")) == 0) { |
6227 | 6230 | if (value == nullptr || Z_TYPE_P(value) == IS_NULL) { |
6228 | 6231 | continue; |
6229 | 6232 | } |
|
0 commit comments