{"action":"created","comment":{"url":"https://api.github.com/repos/interiorem/elliptics/pulls/comments/231532866","pull_request_review_id":172521637,"id":231532866,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTUzMjg2Ng==","diff_hunk":"@@ -878,6 +878,156 @@ int dnet_cmd_bulk_read_new(struct dnet_net_state *st, struct dnet_cmd *cmd, void\n \treturn 0;\n }\n \n+class bulk_remove_handler : public std::enable_shared_from_this<bulk_remove_handler> {\n+public:\n+\t bulk_remove_handler(struct dnet_net_state *st, const struct dnet_cmd *cmd)\n+\t: m_session(st->n)\n+\t, m_node(st->n)\n+\t, m_state(dnet_state_get(st))\n+\t, m_orig_cmd(*cmd)\n+\t, m_total(0) {\n+\t\tusing namespace ioremap::elliptics;\n+\t\tm_session.set_exceptions_policy(session::no_exceptions);\n+\t\tm_session.set_filter(filters::all_with_ack);\n+\t\tm_session.set_trace_id(cmd->trace_id);\n+\t\tm_session.set_trace_bit(!!(cmd->flags & DNET_FLAGS_TRACE_BIT));\n+\t}\n+\n+\tvoid start(const ioremap::elliptics::dnet_bulk_remove_request &request) {\n+\t\tusing namespace ioremap::elliptics;\n+\n+\t\tauto process_cas_error = [&]() {","path":"library/backend.cpp","position":22,"original_position":22,"commit_id":"d43dd9cbc612d70a7a5953f383bd5257d4c8a7d9","original_commit_id":"c4eec894d120188bb055571e2a8c1db6d9a82c88","user":{"login":"shaitan","id":446423,"node_id":"MDQ6VXNlcjQ0NjQyMw==","avatar_url":"https://avatars2.githubusercontent.com/u/446423?v=4","gravatar_id":"","url":"https://api.github.com/users/shaitan","html_url":"https://github.com/shaitan","followers_url":"https://api.github.com/users/shaitan/followers","following_url":"https://api.github.com/users/shaitan/following{/other_user}","gists_url":"https://api.github.com/users/shaitan/gists{/gist_id}","starred_url":"https://api.github.com/users/shaitan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaitan/subscriptions","organizations_url":"https://api.github.com/users/shaitan/orgs","repos_url":"https://api.github.com/users/shaitan/repos","events_url":"https://api.github.com/users/shaitan/events{/privacy}","received_events_url":"https://api.github.com/users/shaitan/received_events","type":"User","site_admin":false},"body":"But there is no `cas` logic here","created_at":"2018-11-07T14:44:54Z","updated_at":"2018-11-07T14:44:54Z","html_url":"https://github.com/interiorem/elliptics/pull/216#discussion_r231532866","pull_request_url":"https://api.github.com/repos/interiorem/elliptics/pulls/216","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/interiorem/elliptics/pulls/comments/231532866"},"html":{"href":"https://github.com/interiorem/elliptics/pull/216#discussion_r231532866"},"pull_request":{"href":"https://api.github.com/repos/interiorem/elliptics/pulls/216"}},"in_reply_to_id":231474359},"pull_request":{"url":"https://api.github.com/repos/interiorem/elliptics/pulls/216","id":226593529,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2NTkzNTI5","html_url":"https://github.com/interiorem/elliptics/pull/216","diff_url":"https://github.com/interiorem/elliptics/pull/216.diff","patch_url":"https://github.com/interiorem/elliptics/pull/216.patch","issue_url":"https://api.github.com/repos/interiorem/elliptics/issues/216","number":216,"state":"open","locked":false,"title":"Bulk remove","user":{"login":"ElenaUK","id":44290759,"node_id":"MDQ6VXNlcjQ0MjkwNzU5","avatar_url":"https://avatars3.githubusercontent.com/u/44290759?v=4","gravatar_id":"","url":"https://api.github.com/users/ElenaUK","html_url":"https://github.com/ElenaUK","followers_url":"https://api.github.com/users/ElenaUK/followers","following_url":"https://api.github.com/users/ElenaUK/following{/other_user}","gists_url":"https://api.github.com/users/ElenaUK/gists{/gist_id}","starred_url":"https://api.github.com/users/ElenaUK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElenaUK/subscriptions","organizations_url":"https://api.github.com/users/ElenaUK/orgs","repos_url":"https://api.github.com/users/ElenaUK/repos","events_url":"https://api.github.com/users/ElenaUK/events{/privacy}","received_events_url":"https://api.github.com/users/ElenaUK/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-29T14:59:25Z","updated_at":"2018-11-07T14:44:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c571c0ffc51958c963c368dbf4d8b8caf346c140","assignee":null,"assignees":[],"requested_reviewers":[{"login":"karitra","id":391972,"node_id":"MDQ6VXNlcjM5MTk3Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/391972?v=4","gravatar_id":"","url":"https://api.github.com/users/karitra","html_url":"https://github.com/karitra","followers_url":"https://api.github.com/users/karitra/followers","following_url":"https://api.github.com/users/karitra/following{/other_user}","gists_url":"https://api.github.com/users/karitra/gists{/gist_id}","starred_url":"https://api.github.com/users/karitra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karitra/subscriptions","organizations_url":"https://api.github.com/users/karitra/orgs","repos_url":"https://api.github.com/users/karitra/repos","events_url":"https://api.github.com/users/karitra/events{/privacy}","received_events_url":"https://api.github.com/users/karitra/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/interiorem/elliptics/pulls/216/commits","review_comments_url":"https://api.github.com/repos/interiorem/elliptics/pulls/216/comments","review_comment_url":"https://api.github.com/repos/interiorem/elliptics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/interiorem/elliptics/issues/216/comments","statuses_url":"https://api.github.com/repos/interiorem/elliptics/statuses/d43dd9cbc612d70a7a5953f383bd5257d4c8a7d9","head":{"label":"ElenaUK:bulk_remove","ref":"bulk_remove","sha":"d43dd9cbc612d70a7a5953f383bd5257d4c8a7d9","user":{"login":"ElenaUK","id":44290759,"node_id":"MDQ6VXNlcjQ0MjkwNzU5","avatar_url":"https://avatars3.githubusercontent.com/u/44290759?v=4","gravatar_id":"","url":"https://api.github.com/users/ElenaUK","html_url":"https://github.com/ElenaUK","followers_url":"https://api.github.com/users/ElenaUK/followers","following_url":"https://api.github.com/users/ElenaUK/following{/other_user}","gists_url":"https://api.github.com/users/ElenaUK/gists{/gist_id}","starred_url":"https://api.github.com/users/ElenaUK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElenaUK/subscriptions","organizations_url":"https://api.github.com/users/ElenaUK/orgs","repos_url":"https://api.github.com/users/ElenaUK/repos","events_url":"https://api.github.com/users/ElenaUK/events{/privacy}","received_events_url":"https://api.github.com/users/ElenaUK/received_events","type":"User","site_admin":false},"repo":{"id":153763904,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM3NjM5MDQ=","name":"elliptics","full_name":"ElenaUK/elliptics","private":false,"owner":{"login":"ElenaUK","id":44290759,"node_id":"MDQ6VXNlcjQ0MjkwNzU5","avatar_url":"https://avatars3.githubusercontent.com/u/44290759?v=4","gravatar_id":"","url":"https://api.github.com/users/ElenaUK","html_url":"https://github.com/ElenaUK","followers_url":"https://api.github.com/users/ElenaUK/followers","following_url":"https://api.github.com/users/ElenaUK/following{/other_user}","gists_url":"https://api.github.com/users/ElenaUK/gists{/gist_id}","starred_url":"https://api.github.com/users/ElenaUK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElenaUK/subscriptions","organizations_url":"https://api.github.com/users/ElenaUK/orgs","repos_url":"https://api.github.com/users/ElenaUK/repos","events_url":"https://api.github.com/users/ElenaUK/events{/privacy}","received_events_url":"https://api.github.com/users/ElenaUK/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ElenaUK/elliptics","description":"Distributed storage for medium and large objects with streaming support","fork":true,"url":"https://api.github.com/repos/ElenaUK/elliptics","forks_url":"https://api.github.com/repos/ElenaUK/elliptics/forks","keys_url":"https://api.github.com/repos/ElenaUK/elliptics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ElenaUK/elliptics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ElenaUK/elliptics/teams","hooks_url":"https://api.github.com/repos/ElenaUK/elliptics/hooks","issue_events_url":"https://api.github.com/repos/ElenaUK/elliptics/issues/events{/number}","events_url":"https://api.github.com/repos/ElenaUK/elliptics/events","assignees_url":"https://api.github.com/repos/ElenaUK/elliptics/assignees{/user}","branches_url":"https://api.github.com/repos/ElenaUK/elliptics/branches{/branch}","tags_url":"https://api.github.com/repos/ElenaUK/elliptics/tags","blobs_url":"https://api.github.com/repos/ElenaUK/elliptics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ElenaUK/elliptics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ElenaUK/elliptics/git/refs{/sha}","trees_url":"https://api.github.com/repos/ElenaUK/elliptics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ElenaUK/elliptics/statuses/{sha}","languages_url":"https://api.github.com/repos/ElenaUK/elliptics/languages","stargazers_url":"https://api.github.com/repos/ElenaUK/elliptics/stargazers","contributors_url":"https://api.github.com/repos/ElenaUK/elliptics/contributors","subscribers_url":"https://api.github.com/repos/ElenaUK/elliptics/subscribers","subscription_url":"https://api.github.com/repos/ElenaUK/elliptics/subscription","commits_url":"https://api.github.com/repos/ElenaUK/elliptics/commits{/sha}","git_commits_url":"https://api.github.com/repos/ElenaUK/elliptics/git/commits{/sha}","comments_url":"https://api.github.com/repos/ElenaUK/elliptics/comments{/number}","issue_comment_url":"https://api.github.com/repos/ElenaUK/elliptics/issues/comments{/number}","contents_url":"https://api.github.com/repos/ElenaUK/elliptics/contents/{+path}","compare_url":"https://api.github.com/repos/ElenaUK/elliptics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ElenaUK/elliptics/merges","archive_url":"https://api.github.com/repos/ElenaUK/elliptics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ElenaUK/elliptics/downloads","issues_url":"https://api.github.com/repos/ElenaUK/elliptics/issues{/number}","pulls_url":"https://api.github.com/repos/ElenaUK/elliptics/pulls{/number}","milestones_url":"https://api.github.com/repos/ElenaUK/elliptics/milestones{/number}","notifications_url":"https://api.github.com/repos/ElenaUK/elliptics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ElenaUK/elliptics/labels{/name}","releases_url":"https://api.github.com/repos/ElenaUK/elliptics/releases{/id}","deployments_url":"https://api.github.com/repos/ElenaUK/elliptics/deployments","created_at":"2018-10-19T10:08:58Z","updated_at":"2018-10-25T13:54:39Z","pushed_at":"2018-11-07T14:39:48Z","git_url":"git://github.com/ElenaUK/elliptics.git","ssh_url":"git@github.com:ElenaUK/elliptics.git","clone_url":"https://github.com/ElenaUK/elliptics.git","svn_url":"https://github.com/ElenaUK/elliptics","homepage":"http://reverbrain.com/elliptics","size":21676,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"interiorem:master","ref":"master","sha":"027ebba0b13b73ca74a6c0c6948866ca2ae77821","user":{"login":"interiorem","id":17122620,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MTIyNjIw","avatar_url":"https://avatars0.githubusercontent.com/u/17122620?v=4","gravatar_id":"","url":"https://api.github.com/users/interiorem","html_url":"https://github.com/interiorem","followers_url":"https://api.github.com/users/interiorem/followers","following_url":"https://api.github.com/users/interiorem/following{/other_user}","gists_url":"https://api.github.com/users/interiorem/gists{/gist_id}","starred_url":"https://api.github.com/users/interiorem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interiorem/subscriptions","organizations_url":"https://api.github.com/users/interiorem/orgs","repos_url":"https://api.github.com/users/interiorem/repos","events_url":"https://api.github.com/users/interiorem/events{/privacy}","received_events_url":"https://api.github.com/users/interiorem/received_events","type":"Organization","site_admin":false},"repo":{"id":51368986,"node_id":"MDEwOlJlcG9zaXRvcnk1MTM2ODk4Ng==","name":"elliptics","full_name":"interiorem/elliptics","private":false,"owner":{"login":"interiorem","id":17122620,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MTIyNjIw","avatar_url":"https://avatars0.githubusercontent.com/u/17122620?v=4","gravatar_id":"","url":"https://api.github.com/users/interiorem","html_url":"https://github.com/interiorem","followers_url":"https://api.github.com/users/interiorem/followers","following_url":"https://api.github.com/users/interiorem/following{/other_user}","gists_url":"https://api.github.com/users/interiorem/gists{/gist_id}","starred_url":"https://api.github.com/users/interiorem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/interiorem/subscriptions","organizations_url":"https://api.github.com/users/interiorem/orgs","repos_url":"https://api.github.com/users/interiorem/repos","events_url":"https://api.github.com/users/interiorem/events{/privacy}","received_events_url":"https://api.github.com/users/interiorem/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/interiorem/elliptics","description":"Distributed storage for medium and large objects with streaming support","fork":true,"url":"https://api.github.com/repos/interiorem/elliptics","forks_url":"https://api.github.com/repos/interiorem/elliptics/forks","keys_url":"https://api.github.com/repos/interiorem/elliptics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/interiorem/elliptics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/interiorem/elliptics/teams","hooks_url":"https://api.github.com/repos/interiorem/elliptics/hooks","issue_events_url":"https://api.github.com/repos/interiorem/elliptics/issues/events{/number}","events_url":"https://api.github.com/repos/interiorem/elliptics/events","assignees_url":"https://api.github.com/repos/interiorem/elliptics/assignees{/user}","branches_url":"https://api.github.com/repos/interiorem/elliptics/branches{/branch}","tags_url":"https://api.github.com/repos/interiorem/elliptics/tags","blobs_url":"https://api.github.com/repos/interiorem/elliptics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/interiorem/elliptics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/interiorem/elliptics/git/refs{/sha}","trees_url":"https://api.github.com/repos/interiorem/elliptics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/interiorem/elliptics/statuses/{sha}","languages_url":"https://api.github.com/repos/interiorem/elliptics/languages","stargazers_url":"https://api.github.com/repos/interiorem/elliptics/stargazers","contributors_url":"https://api.github.com/repos/interiorem/elliptics/contributors","subscribers_url":"https://api.github.com/repos/interiorem/elliptics/subscribers","subscription_url":"https://api.github.com/repos/interiorem/elliptics/subscription","commits_url":"https://api.github.com/repos/interiorem/elliptics/commits{/sha}","git_commits_url":"https://api.github.com/repos/interiorem/elliptics/git/commits{/sha}","comments_url":"https://api.github.com/repos/interiorem/elliptics/comments{/number}","issue_comment_url":"https://api.github.com/repos/interiorem/elliptics/issues/comments{/number}","contents_url":"https://api.github.com/repos/interiorem/elliptics/contents/{+path}","compare_url":"https://api.github.com/repos/interiorem/elliptics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/interiorem/elliptics/merges","archive_url":"https://api.github.com/repos/interiorem/elliptics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/interiorem/elliptics/downloads","issues_url":"https://api.github.com/repos/interiorem/elliptics/issues{/number}","pulls_url":"https://api.github.com/repos/interiorem/elliptics/pulls{/number}","milestones_url":"https://api.github.com/repos/interiorem/elliptics/milestones{/number}","notifications_url":"https://api.github.com/repos/interiorem/elliptics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/interiorem/elliptics/labels{/name}","releases_url":"https://api.github.com/repos/interiorem/elliptics/releases{/id}","deployments_url":"https://api.github.com/repos/interiorem/elliptics/deployments","created_at":"2016-02-09T13:38:50Z","updated_at":"2018-11-06T07:50:16Z","pushed_at":"2018-11-07T14:39:50Z","git_url":"git://github.com/interiorem/elliptics.git","ssh_url":"git@github.com:interiorem/elliptics.git","clone_url":"https://github.com/interiorem/elliptics.git","svn_url":"https://github.com/interiorem/elliptics","homepage":"http://reverbrain.com/elliptics","size":21649,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":6,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/interiorem/elliptics/pulls/216"},"html":{"href":"https://github.com/interiorem/elliptics/pull/216"},"issue":{"href":"https://api.github.com/repos/interiorem/elliptics/issues/216"},"comments":{"href":"https://api.github.com/repos/interiorem/elliptics/issues/216/comments"},"review_comments":{"href":"https://api.github.com/repos/interiorem/elliptics/pulls/216/comments"},"review_comment":{"href":"https://api.github.com/repos/interiorem/elliptics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/interiorem/elliptics/pulls/216/commits"},"statuses":{"href":"https://api.github.com/repos/interiorem/elliptics/statuses/d43dd9cbc612d70a7a5953f383bd5257d4c8a7d9"}},"author_association":"NONE"}}
{"actor":{"display_login":"shaitan"}}