{"action":"created","comment":{"url":"https://api.github.com/repos/yandex/mastermind/pulls/comments/41980661","id":41980661,"diff_hunk":"@@ -43,42 +43,33 @@ enum ConfigKey\n     ConnectTimeoutMS                  = 0x20000\n };\n \n-Parser::Folder config_1[] = {\n-    { \"elliptics\",                             0, Elliptics                         },\n-    { \"forbidden_dht_groups\",                  0, ForbiddenDhtGroups                },\n-    { \"forbidden_unmatched_group_total_space\", 0, ForbiddenUnmatchedGroupTotalSpace },\n-    { \"reserved_space\",                        0, ReservedSpace                     },\n-    { \"dnet_log_mask\",                         0, DnetLogMask                       },\n-    { \"net_thread_num\",                        0, NetThreadNum                      },\n-    { \"io_thread_num\",                         0, IoThreadNum                       },\n-    { \"nonblocking_io_thread_num\",             0, NonblockingIoThreadNum            },\n-    { \"metadata\",                              0, Metadata                          },\n-    { NULL, 0, 0 }\n-};\n-\n-Parser::Folder config_2[] = {\n-    { \"nodes\",        Elliptics, Nodes       },\n-    { \"monitor_port\", Elliptics, MonitorPort },\n-    { \"wait_timeout\", Elliptics, WaitTimeout },\n-    { \"url\",          Metadata,  Url         },\n-    { \"jobs\",         Metadata,  Jobs        },\n-    { \"options\",      Metadata,  Options     },\n-    { NULL, 0, 0 }\n-};\n-\n-Parser::Folder config_3[] = {\n-    { \"db\",               Metadata|Jobs,    Db               },\n-    { \"connectTimeoutMS\", Metadata|Options, ConnectTimeoutMS },\n-    { NULL, 0, 0 }\n-};\n-\n-Parser::Folder *config_folders[] = {\n-    config_1,\n-    config_2,\n-    config_3\n+std::vector<Parser::FolderVector> config_folders = {\n+    {\n+        { \"elliptics\",                             0, Elliptics                         },\n+        { \"forbidden_dht_groups\",                  0, ForbiddenDhtGroups                },\n+        { \"forbidden_unmatched_group_total_space\", 0, ForbiddenUnmatchedGroupTotalSpace },\n+        { \"reserved_space\",                        0, ReservedSpace                     },\n+        { \"dnet_log_mask\",                         0, DnetLogMask                       },\n+        { \"net_thread_num\",                        0, NetThreadNum                      },\n+        { \"io_thread_num\",                         0, IoThreadNum                       },\n+        { \"nonblocking_io_thread_num\",             0, NonblockingIoThreadNum            },\n+        { \"metadata\",                              0, Metadata                          }\n+    },","path":"src/collector/ConfigParser.cpp","position":48,"original_position":48,"commit_id":"297542397fcd08adcc2f4a7bdd8258fe9dcca9e6","original_commit_id":"297542397fcd08adcc2f4a7bdd8258fe9dcca9e6","user":{"login":"v-nikulichev","id":7972907,"avatar_url":"https://avatars.githubusercontent.com/u/7972907?v=3","gravatar_id":"","url":"https://api.github.com/users/v-nikulichev","html_url":"https://github.com/v-nikulichev","followers_url":"https://api.github.com/users/v-nikulichev/followers","following_url":"https://api.github.com/users/v-nikulichev/following{/other_user}","gists_url":"https://api.github.com/users/v-nikulichev/gists{/gist_id}","starred_url":"https://api.github.com/users/v-nikulichev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-nikulichev/subscriptions","organizations_url":"https://api.github.com/users/v-nikulichev/orgs","repos_url":"https://api.github.com/users/v-nikulichev/repos","events_url":"https://api.github.com/users/v-nikulichev/events{/privacy}","received_events_url":"https://api.github.com/users/v-nikulichev/received_events","type":"User","site_admin":false},"body":"Хм, ```*_thread_num``` не в elliptics.","created_at":"2015-10-14T11:10:27Z","updated_at":"2015-10-14T11:10:27Z","html_url":"https://github.com/yandex/mastermind/pull/26#discussion_r41980661","pull_request_url":"https://api.github.com/repos/yandex/mastermind/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/yandex/mastermind/pulls/comments/41980661"},"html":{"href":"https://github.com/yandex/mastermind/pull/26#discussion_r41980661"},"pull_request":{"href":"https://api.github.com/repos/yandex/mastermind/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/yandex/mastermind/pulls/26","id":47555134,"html_url":"https://github.com/yandex/mastermind/pull/26","diff_url":"https://github.com/yandex/mastermind/pull/26.diff","patch_url":"https://github.com/yandex/mastermind/pull/26.patch","issue_url":"https://api.github.com/repos/yandex/mastermind/issues/26","number":26,"state":"open","locked":false,"title":"Parser fixes and improvements","user":{"login":"v-nikulichev","id":7972907,"avatar_url":"https://avatars.githubusercontent.com/u/7972907?v=3","gravatar_id":"","url":"https://api.github.com/users/v-nikulichev","html_url":"https://github.com/v-nikulichev","followers_url":"https://api.github.com/users/v-nikulichev/followers","following_url":"https://api.github.com/users/v-nikulichev/following{/other_user}","gists_url":"https://api.github.com/users/v-nikulichev/gists{/gist_id}","starred_url":"https://api.github.com/users/v-nikulichev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-nikulichev/subscriptions","organizations_url":"https://api.github.com/users/v-nikulichev/orgs","repos_url":"https://api.github.com/users/v-nikulichev/repos","events_url":"https://api.github.com/users/v-nikulichev/events{/privacy}","received_events_url":"https://api.github.com/users/v-nikulichev/received_events","type":"User","site_admin":false},"body":"This changeset contains bugfix, performance improvements, features, and cosmetic fix.","created_at":"2015-10-13T16:18:29Z","updated_at":"2015-10-14T11:10:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7354549ce5dcfdf4bef1ba215bebcaa18e2fb580","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yandex/mastermind/pulls/26/commits","review_comments_url":"https://api.github.com/repos/yandex/mastermind/pulls/26/comments","review_comment_url":"https://api.github.com/repos/yandex/mastermind/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yandex/mastermind/issues/26/comments","statuses_url":"https://api.github.com/repos/yandex/mastermind/statuses/297542397fcd08adcc2f4a7bdd8258fe9dcca9e6","head":{"label":"yandex:cpp-worker-gcd-parser","ref":"cpp-worker-gcd-parser","sha":"297542397fcd08adcc2f4a7bdd8258fe9dcca9e6","user":{"login":"yandex","id":7409213,"avatar_url":"https://avatars.githubusercontent.com/u/7409213?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex","html_url":"https://github.com/yandex","followers_url":"https://api.github.com/users/yandex/followers","following_url":"https://api.github.com/users/yandex/following{/other_user}","gists_url":"https://api.github.com/users/yandex/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex/subscriptions","organizations_url":"https://api.github.com/users/yandex/orgs","repos_url":"https://api.github.com/users/yandex/repos","events_url":"https://api.github.com/users/yandex/events{/privacy}","received_events_url":"https://api.github.com/users/yandex/received_events","type":"Organization","site_admin":false},"repo":{"id":23435885,"name":"mastermind","full_name":"yandex/mastermind","owner":{"login":"yandex","id":7409213,"avatar_url":"https://avatars.githubusercontent.com/u/7409213?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex","html_url":"https://github.com/yandex","followers_url":"https://api.github.com/users/yandex/followers","following_url":"https://api.github.com/users/yandex/following{/other_user}","gists_url":"https://api.github.com/users/yandex/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex/subscriptions","organizations_url":"https://api.github.com/users/yandex/orgs","repos_url":"https://api.github.com/users/yandex/repos","events_url":"https://api.github.com/users/yandex/events{/privacy}","received_events_url":"https://api.github.com/users/yandex/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yandex/mastermind","description":"Smart control for a big storage","fork":false,"url":"https://api.github.com/repos/yandex/mastermind","forks_url":"https://api.github.com/repos/yandex/mastermind/forks","keys_url":"https://api.github.com/repos/yandex/mastermind/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yandex/mastermind/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yandex/mastermind/teams","hooks_url":"https://api.github.com/repos/yandex/mastermind/hooks","issue_events_url":"https://api.github.com/repos/yandex/mastermind/issues/events{/number}","events_url":"https://api.github.com/repos/yandex/mastermind/events","assignees_url":"https://api.github.com/repos/yandex/mastermind/assignees{/user}","branches_url":"https://api.github.com/repos/yandex/mastermind/branches{/branch}","tags_url":"https://api.github.com/repos/yandex/mastermind/tags","blobs_url":"https://api.github.com/repos/yandex/mastermind/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yandex/mastermind/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yandex/mastermind/git/refs{/sha}","trees_url":"https://api.github.com/repos/yandex/mastermind/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yandex/mastermind/statuses/{sha}","languages_url":"https://api.github.com/repos/yandex/mastermind/languages","stargazers_url":"https://api.github.com/repos/yandex/mastermind/stargazers","contributors_url":"https://api.github.com/repos/yandex/mastermind/contributors","subscribers_url":"https://api.github.com/repos/yandex/mastermind/subscribers","subscription_url":"https://api.github.com/repos/yandex/mastermind/subscription","commits_url":"https://api.github.com/repos/yandex/mastermind/commits{/sha}","git_commits_url":"https://api.github.com/repos/yandex/mastermind/git/commits{/sha}","comments_url":"https://api.github.com/repos/yandex/mastermind/comments{/number}","issue_comment_url":"https://api.github.com/repos/yandex/mastermind/issues/comments{/number}","contents_url":"https://api.github.com/repos/yandex/mastermind/contents/{+path}","compare_url":"https://api.github.com/repos/yandex/mastermind/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yandex/mastermind/merges","archive_url":"https://api.github.com/repos/yandex/mastermind/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yandex/mastermind/downloads","issues_url":"https://api.github.com/repos/yandex/mastermind/issues{/number}","pulls_url":"https://api.github.com/repos/yandex/mastermind/pulls{/number}","milestones_url":"https://api.github.com/repos/yandex/mastermind/milestones{/number}","notifications_url":"https://api.github.com/repos/yandex/mastermind/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yandex/mastermind/labels{/name}","releases_url":"https://api.github.com/repos/yandex/mastermind/releases{/id}","created_at":"2014-08-28T16:57:05Z","updated_at":"2015-08-20T16:09:22Z","pushed_at":"2015-10-13T16:18:30Z","git_url":"git://github.com/yandex/mastermind.git","ssh_url":"git@github.com:yandex/mastermind.git","clone_url":"https://github.com/yandex/mastermind.git","svn_url":"https://github.com/yandex/mastermind","homepage":"","size":4342,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":13,"forks":2,"open_issues":13,"watchers":2,"default_branch":"master"}},"base":{"label":"yandex:cpp-worker-gcd","ref":"cpp-worker-gcd","sha":"9c358fb835c7a469462739361d6b0e986cd134a6","user":{"login":"yandex","id":7409213,"avatar_url":"https://avatars.githubusercontent.com/u/7409213?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex","html_url":"https://github.com/yandex","followers_url":"https://api.github.com/users/yandex/followers","following_url":"https://api.github.com/users/yandex/following{/other_user}","gists_url":"https://api.github.com/users/yandex/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex/subscriptions","organizations_url":"https://api.github.com/users/yandex/orgs","repos_url":"https://api.github.com/users/yandex/repos","events_url":"https://api.github.com/users/yandex/events{/privacy}","received_events_url":"https://api.github.com/users/yandex/received_events","type":"Organization","site_admin":false},"repo":{"id":23435885,"name":"mastermind","full_name":"yandex/mastermind","owner":{"login":"yandex","id":7409213,"avatar_url":"https://avatars.githubusercontent.com/u/7409213?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex","html_url":"https://github.com/yandex","followers_url":"https://api.github.com/users/yandex/followers","following_url":"https://api.github.com/users/yandex/following{/other_user}","gists_url":"https://api.github.com/users/yandex/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex/subscriptions","organizations_url":"https://api.github.com/users/yandex/orgs","repos_url":"https://api.github.com/users/yandex/repos","events_url":"https://api.github.com/users/yandex/events{/privacy}","received_events_url":"https://api.github.com/users/yandex/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yandex/mastermind","description":"Smart control for a big storage","fork":false,"url":"https://api.github.com/repos/yandex/mastermind","forks_url":"https://api.github.com/repos/yandex/mastermind/forks","keys_url":"https://api.github.com/repos/yandex/mastermind/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yandex/mastermind/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yandex/mastermind/teams","hooks_url":"https://api.github.com/repos/yandex/mastermind/hooks","issue_events_url":"https://api.github.com/repos/yandex/mastermind/issues/events{/number}","events_url":"https://api.github.com/repos/yandex/mastermind/events","assignees_url":"https://api.github.com/repos/yandex/mastermind/assignees{/user}","branches_url":"https://api.github.com/repos/yandex/mastermind/branches{/branch}","tags_url":"https://api.github.com/repos/yandex/mastermind/tags","blobs_url":"https://api.github.com/repos/yandex/mastermind/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yandex/mastermind/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yandex/mastermind/git/refs{/sha}","trees_url":"https://api.github.com/repos/yandex/mastermind/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yandex/mastermind/statuses/{sha}","languages_url":"https://api.github.com/repos/yandex/mastermind/languages","stargazers_url":"https://api.github.com/repos/yandex/mastermind/stargazers","contributors_url":"https://api.github.com/repos/yandex/mastermind/contributors","subscribers_url":"https://api.github.com/repos/yandex/mastermind/subscribers","subscription_url":"https://api.github.com/repos/yandex/mastermind/subscription","commits_url":"https://api.github.com/repos/yandex/mastermind/commits{/sha}","git_commits_url":"https://api.github.com/repos/yandex/mastermind/git/commits{/sha}","comments_url":"https://api.github.com/repos/yandex/mastermind/comments{/number}","issue_comment_url":"https://api.github.com/repos/yandex/mastermind/issues/comments{/number}","contents_url":"https://api.github.com/repos/yandex/mastermind/contents/{+path}","compare_url":"https://api.github.com/repos/yandex/mastermind/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yandex/mastermind/merges","archive_url":"https://api.github.com/repos/yandex/mastermind/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yandex/mastermind/downloads","issues_url":"https://api.github.com/repos/yandex/mastermind/issues{/number}","pulls_url":"https://api.github.com/repos/yandex/mastermind/pulls{/number}","milestones_url":"https://api.github.com/repos/yandex/mastermind/milestones{/number}","notifications_url":"https://api.github.com/repos/yandex/mastermind/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yandex/mastermind/labels{/name}","releases_url":"https://api.github.com/repos/yandex/mastermind/releases{/id}","created_at":"2014-08-28T16:57:05Z","updated_at":"2015-08-20T16:09:22Z","pushed_at":"2015-10-13T16:18:30Z","git_url":"git://github.com/yandex/mastermind.git","ssh_url":"git@github.com:yandex/mastermind.git","clone_url":"https://github.com/yandex/mastermind.git","svn_url":"https://github.com/yandex/mastermind","homepage":"","size":4342,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":13,"forks":2,"open_issues":13,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yandex/mastermind/pulls/26"},"html":{"href":"https://github.com/yandex/mastermind/pull/26"},"issue":{"href":"https://api.github.com/repos/yandex/mastermind/issues/26"},"comments":{"href":"https://api.github.com/repos/yandex/mastermind/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/yandex/mastermind/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/yandex/mastermind/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yandex/mastermind/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/yandex/mastermind/statuses/297542397fcd08adcc2f4a7bdd8258fe9dcca9e6"}}}}