Skip to content

Commit

Permalink
filed: added R_STORAGE to resource ids
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Sep 6, 2018
1 parent dc2ac32 commit 912b81c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions core/src/filed/filed_conf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,12 @@ static void ParseConfigCb(LEX *lc, ResourceItem *item, int index, int pass)

static void ConfigReadyCallback(ConfigurationParser &my_config)
{
std::map<int, std::string> map;
map.insert(std::make_pair(R_DIRECTOR, "R_DIRECTOR"));
map.insert(std::make_pair(R_CLIENT, "R_CLIENT"));
// map.insert(std::make_pair(R_STORAGE, "R_STORAGE"));
map.insert(std::make_pair(R_MSGS, "R_MSGS"));
std::map<int, std::string> map{
{R_DIRECTOR, "R_DIRECTOR"},
{R_CLIENT, "R_CLIENT"},
{R_STORAGE, "R_STORAGE"},
{R_MSGS, "R_MSGS"}
};
my_config.InitializeQualifiedResourceNameTypeConverter(map);

}
Expand Down
3 changes: 2 additions & 1 deletion core/src/filed/filed_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ enum {
R_DIRECTOR = 1001,
R_CLIENT,
R_MSGS,
R_STORAGE,
R_FIRST = R_DIRECTOR,
R_LAST = R_MSGS /* keep this updated */
R_LAST = R_STORAGE /* keep this updated */
};

/*
Expand Down

0 comments on commit 912b81c

Please sign in to comment.