{"action":"created","comment":{"url":"https://api.github.com/repos/bdtbd/mdt/pulls/comments/47195629","id":47195629,"diff_hunk":"@@ -956,14 +963,18 @@ Status TableImpl::GetByExtendIndex(const std::vector<IndexConditionExtend>& inde\n     }\n \n     if (FLAGS_read_by_index_filter) {\n-        Mutex mutex;\n-        int32_t counter = 0; // num of primary data read totally\n-        bool finish = false; // set true after any index table scanned done\n+        MultiIndexParam* multi_param = new MultiIndexParam;\n+        multi_param->limit = limit;\n+        multi_param->counter = 0;// num of primary data read totally\n+        multi_param->finish = false; // set true after any index table scanned done\n+        multi_param->ref = valid_nr_index_table;\n+\n         std::map<std::string, ResultStream> result_map;\n         ThreadPool scan_threads(valid_nr_index_table);\n         for (int i = 0; i < valid_nr_index_table; i++) {\n-            scan_threads.AddTask(boost::bind(&TableImpl::GetByFilterIndex, this, index_table_vec[i],\n-                                             scan_desc_vec[i], limit, &mutex, &counter, &finish,\n+            scan_threads.AddTask(boost::bind(&TableImpl::GetByFilterIndex, this,\n+                                             index_table_vec[i], scan_desc_vec[i],\n+                                             multi_param,\n                                              &index_condition_ex_list, &result_map));\n         }\n         scan_threads.Stop(true);","path":"src/sdk/table_impl.cc","position":56,"original_position":56,"commit_id":"faace1f7466593dd61d7bb4098602718564c0486","original_commit_id":"faace1f7466593dd61d7bb4098602718564c0486","user":{"login":"00k","id":9716419,"avatar_url":"https://avatars.githubusercontent.com/u/9716419?v=3","gravatar_id":"","url":"https://api.github.com/users/00k","html_url":"https://github.com/00k","followers_url":"https://api.github.com/users/00k/followers","following_url":"https://api.github.com/users/00k/following{/other_user}","gists_url":"https://api.github.com/users/00k/gists{/gist_id}","starred_url":"https://api.github.com/users/00k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/00k/subscriptions","organizations_url":"https://api.github.com/users/00k/orgs","repos_url":"https://api.github.com/users/00k/repos","events_url":"https://api.github.com/users/00k/events{/privacy}","received_events_url":"https://api.github.com/users/00k/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2015-12-10T07:20:32Z","updated_at":"2015-12-10T07:20:32Z","html_url":"https://github.com/bdtbd/mdt/pull/76#discussion_r47195629","pull_request_url":"https://api.github.com/repos/bdtbd/mdt/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/bdtbd/mdt/pulls/comments/47195629"},"html":{"href":"https://github.com/bdtbd/mdt/pull/76#discussion_r47195629"},"pull_request":{"href":"https://api.github.com/repos/bdtbd/mdt/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/bdtbd/mdt/pulls/76","id":53205609,"html_url":"https://github.com/bdtbd/mdt/pull/76","diff_url":"https://github.com/bdtbd/mdt/pull/76.diff","patch_url":"https://github.com/bdtbd/mdt/pull/76.patch","issue_url":"https://api.github.com/repos/bdtbd/mdt/issues/76","number":76,"state":"open","locked":false,"title":"Scan enhance","user":{"login":"caijieming-baidu","id":13461134,"avatar_url":"https://avatars.githubusercontent.com/u/13461134?v=3","gravatar_id":"","url":"https://api.github.com/users/caijieming-baidu","html_url":"https://github.com/caijieming-baidu","followers_url":"https://api.github.com/users/caijieming-baidu/followers","following_url":"https://api.github.com/users/caijieming-baidu/following{/other_user}","gists_url":"https://api.github.com/users/caijieming-baidu/gists{/gist_id}","starred_url":"https://api.github.com/users/caijieming-baidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caijieming-baidu/subscriptions","organizations_url":"https://api.github.com/users/caijieming-baidu/orgs","repos_url":"https://api.github.com/users/caijieming-baidu/repos","events_url":"https://api.github.com/users/caijieming-baidu/events{/privacy}","received_events_url":"https://api.github.com/users/caijieming-baidu/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-10T01:51:06Z","updated_at":"2015-12-10T07:20:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f35244e02e5a47e4b94961bba5d717d97720f798","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bdtbd/mdt/pulls/76/commits","review_comments_url":"https://api.github.com/repos/bdtbd/mdt/pulls/76/comments","review_comment_url":"https://api.github.com/repos/bdtbd/mdt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bdtbd/mdt/issues/76/comments","statuses_url":"https://api.github.com/repos/bdtbd/mdt/statuses/faace1f7466593dd61d7bb4098602718564c0486","head":{"label":"caijieming-baidu:scan_enhance","ref":"scan_enhance","sha":"faace1f7466593dd61d7bb4098602718564c0486","user":{"login":"caijieming-baidu","id":13461134,"avatar_url":"https://avatars.githubusercontent.com/u/13461134?v=3","gravatar_id":"","url":"https://api.github.com/users/caijieming-baidu","html_url":"https://github.com/caijieming-baidu","followers_url":"https://api.github.com/users/caijieming-baidu/followers","following_url":"https://api.github.com/users/caijieming-baidu/following{/other_user}","gists_url":"https://api.github.com/users/caijieming-baidu/gists{/gist_id}","starred_url":"https://api.github.com/users/caijieming-baidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caijieming-baidu/subscriptions","organizations_url":"https://api.github.com/users/caijieming-baidu/orgs","repos_url":"https://api.github.com/users/caijieming-baidu/repos","events_url":"https://api.github.com/users/caijieming-baidu/events{/privacy}","received_events_url":"https://api.github.com/users/caijieming-baidu/received_events","type":"User","site_admin":false},"repo":{"id":42437463,"name":"mdt","full_name":"caijieming-baidu/mdt","owner":{"login":"caijieming-baidu","id":13461134,"avatar_url":"https://avatars.githubusercontent.com/u/13461134?v=3","gravatar_id":"","url":"https://api.github.com/users/caijieming-baidu","html_url":"https://github.com/caijieming-baidu","followers_url":"https://api.github.com/users/caijieming-baidu/followers","following_url":"https://api.github.com/users/caijieming-baidu/following{/other_user}","gists_url":"https://api.github.com/users/caijieming-baidu/gists{/gist_id}","starred_url":"https://api.github.com/users/caijieming-baidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caijieming-baidu/subscriptions","organizations_url":"https://api.github.com/users/caijieming-baidu/orgs","repos_url":"https://api.github.com/users/caijieming-baidu/repos","events_url":"https://api.github.com/users/caijieming-baidu/events{/privacy}","received_events_url":"https://api.github.com/users/caijieming-baidu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caijieming-baidu/mdt","description":"","fork":true,"url":"https://api.github.com/repos/caijieming-baidu/mdt","forks_url":"https://api.github.com/repos/caijieming-baidu/mdt/forks","keys_url":"https://api.github.com/repos/caijieming-baidu/mdt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caijieming-baidu/mdt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caijieming-baidu/mdt/teams","hooks_url":"https://api.github.com/repos/caijieming-baidu/mdt/hooks","issue_events_url":"https://api.github.com/repos/caijieming-baidu/mdt/issues/events{/number}","events_url":"https://api.github.com/repos/caijieming-baidu/mdt/events","assignees_url":"https://api.github.com/repos/caijieming-baidu/mdt/assignees{/user}","branches_url":"https://api.github.com/repos/caijieming-baidu/mdt/branches{/branch}","tags_url":"https://api.github.com/repos/caijieming-baidu/mdt/tags","blobs_url":"https://api.github.com/repos/caijieming-baidu/mdt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caijieming-baidu/mdt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caijieming-baidu/mdt/git/refs{/sha}","trees_url":"https://api.github.com/repos/caijieming-baidu/mdt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caijieming-baidu/mdt/statuses/{sha}","languages_url":"https://api.github.com/repos/caijieming-baidu/mdt/languages","stargazers_url":"https://api.github.com/repos/caijieming-baidu/mdt/stargazers","contributors_url":"https://api.github.com/repos/caijieming-baidu/mdt/contributors","subscribers_url":"https://api.github.com/repos/caijieming-baidu/mdt/subscribers","subscription_url":"https://api.github.com/repos/caijieming-baidu/mdt/subscription","commits_url":"https://api.github.com/repos/caijieming-baidu/mdt/commits{/sha}","git_commits_url":"https://api.github.com/repos/caijieming-baidu/mdt/git/commits{/sha}","comments_url":"https://api.github.com/repos/caijieming-baidu/mdt/comments{/number}","issue_comment_url":"https://api.github.com/repos/caijieming-baidu/mdt/issues/comments{/number}","contents_url":"https://api.github.com/repos/caijieming-baidu/mdt/contents/{+path}","compare_url":"https://api.github.com/repos/caijieming-baidu/mdt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caijieming-baidu/mdt/merges","archive_url":"https://api.github.com/repos/caijieming-baidu/mdt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caijieming-baidu/mdt/downloads","issues_url":"https://api.github.com/repos/caijieming-baidu/mdt/issues{/number}","pulls_url":"https://api.github.com/repos/caijieming-baidu/mdt/pulls{/number}","milestones_url":"https://api.github.com/repos/caijieming-baidu/mdt/milestones{/number}","notifications_url":"https://api.github.com/repos/caijieming-baidu/mdt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caijieming-baidu/mdt/labels{/name}","releases_url":"https://api.github.com/repos/caijieming-baidu/mdt/releases{/id}","created_at":"2015-09-14T08:47:14Z","updated_at":"2015-09-14T08:47:14Z","pushed_at":"2015-12-10T03:47:50Z","git_url":"git://github.com/caijieming-baidu/mdt.git","ssh_url":"git@github.com:caijieming-baidu/mdt.git","clone_url":"https://github.com/caijieming-baidu/mdt.git","svn_url":"https://github.com/caijieming-baidu/mdt","homepage":null,"size":510,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"bdtbd:master","ref":"master","sha":"0884529758c1406ba5e71dcb1ada4ea4579a0bc4","user":{"login":"bdtbd","id":14269451,"avatar_url":"https://avatars.githubusercontent.com/u/14269451?v=3","gravatar_id":"","url":"https://api.github.com/users/bdtbd","html_url":"https://github.com/bdtbd","followers_url":"https://api.github.com/users/bdtbd/followers","following_url":"https://api.github.com/users/bdtbd/following{/other_user}","gists_url":"https://api.github.com/users/bdtbd/gists{/gist_id}","starred_url":"https://api.github.com/users/bdtbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdtbd/subscriptions","organizations_url":"https://api.github.com/users/bdtbd/orgs","repos_url":"https://api.github.com/users/bdtbd/repos","events_url":"https://api.github.com/users/bdtbd/events{/privacy}","received_events_url":"https://api.github.com/users/bdtbd/received_events","type":"Organization","site_admin":false},"repo":{"id":42284709,"name":"mdt","full_name":"bdtbd/mdt","owner":{"login":"bdtbd","id":14269451,"avatar_url":"https://avatars.githubusercontent.com/u/14269451?v=3","gravatar_id":"","url":"https://api.github.com/users/bdtbd","html_url":"https://github.com/bdtbd","followers_url":"https://api.github.com/users/bdtbd/followers","following_url":"https://api.github.com/users/bdtbd/following{/other_user}","gists_url":"https://api.github.com/users/bdtbd/gists{/gist_id}","starred_url":"https://api.github.com/users/bdtbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdtbd/subscriptions","organizations_url":"https://api.github.com/users/bdtbd/orgs","repos_url":"https://api.github.com/users/bdtbd/repos","events_url":"https://api.github.com/users/bdtbd/events{/privacy}","received_events_url":"https://api.github.com/users/bdtbd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bdtbd/mdt","description":"","fork":false,"url":"https://api.github.com/repos/bdtbd/mdt","forks_url":"https://api.github.com/repos/bdtbd/mdt/forks","keys_url":"https://api.github.com/repos/bdtbd/mdt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bdtbd/mdt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bdtbd/mdt/teams","hooks_url":"https://api.github.com/repos/bdtbd/mdt/hooks","issue_events_url":"https://api.github.com/repos/bdtbd/mdt/issues/events{/number}","events_url":"https://api.github.com/repos/bdtbd/mdt/events","assignees_url":"https://api.github.com/repos/bdtbd/mdt/assignees{/user}","branches_url":"https://api.github.com/repos/bdtbd/mdt/branches{/branch}","tags_url":"https://api.github.com/repos/bdtbd/mdt/tags","blobs_url":"https://api.github.com/repos/bdtbd/mdt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bdtbd/mdt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bdtbd/mdt/git/refs{/sha}","trees_url":"https://api.github.com/repos/bdtbd/mdt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bdtbd/mdt/statuses/{sha}","languages_url":"https://api.github.com/repos/bdtbd/mdt/languages","stargazers_url":"https://api.github.com/repos/bdtbd/mdt/stargazers","contributors_url":"https://api.github.com/repos/bdtbd/mdt/contributors","subscribers_url":"https://api.github.com/repos/bdtbd/mdt/subscribers","subscription_url":"https://api.github.com/repos/bdtbd/mdt/subscription","commits_url":"https://api.github.com/repos/bdtbd/mdt/commits{/sha}","git_commits_url":"https://api.github.com/repos/bdtbd/mdt/git/commits{/sha}","comments_url":"https://api.github.com/repos/bdtbd/mdt/comments{/number}","issue_comment_url":"https://api.github.com/repos/bdtbd/mdt/issues/comments{/number}","contents_url":"https://api.github.com/repos/bdtbd/mdt/contents/{+path}","compare_url":"https://api.github.com/repos/bdtbd/mdt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bdtbd/mdt/merges","archive_url":"https://api.github.com/repos/bdtbd/mdt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bdtbd/mdt/downloads","issues_url":"https://api.github.com/repos/bdtbd/mdt/issues{/number}","pulls_url":"https://api.github.com/repos/bdtbd/mdt/pulls{/number}","milestones_url":"https://api.github.com/repos/bdtbd/mdt/milestones{/number}","notifications_url":"https://api.github.com/repos/bdtbd/mdt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bdtbd/mdt/labels{/name}","releases_url":"https://api.github.com/repos/bdtbd/mdt/releases{/id}","created_at":"2015-09-11T03:12:11Z","updated_at":"2015-09-15T06:15:25Z","pushed_at":"2015-12-10T03:47:50Z","git_url":"git://github.com/bdtbd/mdt.git","ssh_url":"git@github.com:bdtbd/mdt.git","clone_url":"https://github.com/bdtbd/mdt.git","svn_url":"https://github.com/bdtbd/mdt","homepage":null,"size":511,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":16,"forks":5,"open_issues":16,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bdtbd/mdt/pulls/76"},"html":{"href":"https://github.com/bdtbd/mdt/pull/76"},"issue":{"href":"https://api.github.com/repos/bdtbd/mdt/issues/76"},"comments":{"href":"https://api.github.com/repos/bdtbd/mdt/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/bdtbd/mdt/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/bdtbd/mdt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bdtbd/mdt/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/bdtbd/mdt/statuses/faace1f7466593dd61d7bb4098602718564c0486"}}}}