Skip to content

Commit

Permalink
Merge pull request twitter#29 from michalbiesek/fix-missing-slab-name…
Browse files Browse the repository at this point in the history
…-param

Fix initialize slab_datapool_name option
  • Loading branch information
michalbiesek authored Jul 2, 2019
2 parents 2078503 + c62ef09 commit e8e8c8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/storage/slab/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static double item_growth = ITEM_FACTOR;/* item size growth factor */
static uint32_t hash_power = HASH_POWER;/* power (of 2) entries for hashtable */
static char *slab_datapool = SLAB_DATAPOOL; /* slab datapool path */
static bool prefault = SLAB_PREFAULT; /* slab datapool prefault option */
static char *slab_datapool_name = SLAB_DATAPOOL_NAME;
static char *slab_datapool_name = SLAB_DATAPOOL_NAME; /* slab datapool name */

bool use_cas = SLAB_USE_CAS;
struct hash_table *hash_table = NULL;
Expand Down Expand Up @@ -571,6 +571,7 @@ slab_setup(slab_options_st *options, slab_metrics_st *metrics)
use_cas = option_bool(&options->slab_use_cas);
hash_power = option_uint(&options->slab_hash_power);
slab_datapool = option_str(&options->slab_datapool);
slab_datapool_name = option_str(&options->slab_datapool_name);
prefault = option_bool(&options->slab_datapool_prefault);
}

Expand Down

0 comments on commit e8e8c8d

Please sign in to comment.