Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
1b0752ae
Commit
1b0752ae
authored
Jan 16, 2015
by
Jonathan Jenkins
Browse files
if no lsm lps are used, don't attempt to config
parent
c25d0dc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util/local-storage-model.c
View file @
1b0752ae
...
...
@@ -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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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