Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
50a21405
Commit
50a21405
authored
Jan 16, 2015
by
Jonathan Jenkins
Committed by
Misbah Mubarak
Feb 26, 2015
Browse files
if no lsm lps are used, don't attempt to config
parent
5ea2c1f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util/local-storage-model.c
View file @
50a21405
...
...
@@ -783,6 +783,11 @@ static void read_config(ConfigHandle *ch, char * anno, disk_model_t *model)
void
lsm_configure
(
void
)
{
/* check and see if any lsm LPs are being used - otherwise,
* skip the config */
if
(
0
==
codes_mapping_get_lp_count
(
NULL
,
0
,
LSM_NAME
,
NULL
,
1
))
return
;
anno_map
=
codes_mapping_get_lp_anno_map
(
LSM_NAME
);
assert
(
anno_map
);
models_anno
=
malloc
(
anno_map
->
num_annos
*
sizeof
(
*
models_anno
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment