{"action":"created","comment":{"url":"https://api.github.com/repos/bdtbd/mdt/pulls/comments/43728988","id":43728988,"diff_hunk":"@@ -1096,15 +1149,25 @@ Status TableImpl::ReadDataFromFile(const FileLocation& location, std::string* da\n tera::Table* TableImpl::GetPrimaryTable(const std::string& table_name) {\n     std::string index_table_name = tera_.table_prefix_ + \"#pri#\" + table_name;\n     VLOG(12) << \"get primary table: \" << index_table_name;\n-    tera::Table* table = tera_.tera_table_map_[index_table_name];\n-    return table;\n+    std::map<std::string, tera::Table*>::iterator it = tera_.tera_table_map_.find(index_table_name);\n+    if (it != tera_.tera_table_map_.end()) {\n+        return it->second;\n+    } else {\n+        VLOG(12) << \"not index table \" << index_table_name;","path":"src/sdk/table_impl.cc","position":324,"original_position":321,"commit_id":"14e1f3e4d845d84324fa631cd0d72d20572206ef","original_commit_id":"b85548aa729884716a1401e40b1b741836558238","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":"同下","created_at":"2015-11-03T09:37:38Z","updated_at":"2015-11-03T09:37:38Z","html_url":"https://github.com/bdtbd/mdt/pull/59#discussion_r43728988","pull_request_url":"https://api.github.com/repos/bdtbd/mdt/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/bdtbd/mdt/pulls/comments/43728988"},"html":{"href":"https://github.com/bdtbd/mdt/pull/59#discussion_r43728988"},"pull_request":{"href":"https://api.github.com/repos/bdtbd/mdt/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/bdtbd/mdt/pulls/59","id":49448041,"html_url":"https://github.com/bdtbd/mdt/pull/59","diff_url":"https://github.com/bdtbd/mdt/pull/59.diff","patch_url":"https://github.com/bdtbd/mdt/pull/59.patch","issue_url":"https://api.github.com/repos/bdtbd/mdt/issues/59","number":59,"state":"open","locked":false,"title":"#58: bugfix, scan not exist index table will core","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":"1、增加检查，当插入或扫描不存在的索引表时，忽略该索引表的插入或扫描","created_at":"2015-11-02T15:53:40Z","updated_at":"2015-11-03T09:37:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca5b2f8ac03afd6180c85ab6adb3446b5e206037","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bdtbd/mdt/pulls/59/commits","review_comments_url":"https://api.github.com/repos/bdtbd/mdt/pulls/59/comments","review_comment_url":"https://api.github.com/repos/bdtbd/mdt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bdtbd/mdt/issues/59/comments","statuses_url":"https://api.github.com/repos/bdtbd/mdt/statuses/14e1f3e4d845d84324fa631cd0d72d20572206ef","head":{"label":"caijieming-baidu:master","ref":"master","sha":"14e1f3e4d845d84324fa631cd0d72d20572206ef","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-11-03T09:30:28Z","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":511,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bdtbd:master","ref":"master","sha":"75e2865babbb934dc17f534740ce613d44a7e868","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-11-03T09:30:28Z","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":733,"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":14,"forks":5,"open_issues":14,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bdtbd/mdt/pulls/59"},"html":{"href":"https://github.com/bdtbd/mdt/pull/59"},"issue":{"href":"https://api.github.com/repos/bdtbd/mdt/issues/59"},"comments":{"href":"https://api.github.com/repos/bdtbd/mdt/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/bdtbd/mdt/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/bdtbd/mdt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bdtbd/mdt/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/bdtbd/mdt/statuses/14e1f3e4d845d84324fa631cd0d72d20572206ef"}}}}