Permalink
Browse files

Store distribution type

Change-Id: I9c85c4882cc6ba24a983ac42aacf70b54ec3ee97
Reviewed-on: http://review.couchbase.org/17888
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  • Loading branch information...
1 parent 749461b commit cb5287a1844f59e23914dd9dd5da0aa8dde95679 @avsej avsej committed Jul 4, 2012
Showing with 3 additions and 0 deletions.
  1. +1 −0 src/instance.c
  2. +2 −0 src/internal.h
View
@@ -380,6 +380,7 @@ libcouchbase_error_t libcouchbase_apply_vbucket_config(libcouchbase_t instance,
memcpy(instance->sasl.callbacks, sasl_callbacks, sizeof(sasl_callbacks));
instance->nreplicas = vbucket_config_get_num_replicas(instance->vbucket_config);
+ instance->dist_type = vbucket_config_get_distribution_type(instance->vbucket_config);
/*
* Run through all of the vbuckets and build a map of what they need.
* It would have been nice if I could query libvbucket for the number
View
@@ -173,6 +173,8 @@ extern "C" {
/** The current connect index */
int backup_idx;
+ /** The type of the key distribution */
+ VBUCKET_DISTRIBUTION_TYPE dist_type;
/** The number of replicas */
libcouchbase_uint16_t nreplicas;
/** The number of vbuckets */

0 comments on commit cb5287a

Please sign in to comment.