{"action":"created","comment":{"url":"https://api.github.com/repos/ravendb/ravendb/pulls/comments/258487092","pull_request_review_id":205764170,"id":258487092,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1ODQ4NzA5Mg==","diff_hunk":"@@ -0,0 +1,117 @@\n+﻿using System.Collections.Generic;\n+using Sparrow.Json;\n+using Voron;\n+using Voron.Data.Tables;\n+using static Raven.Server.ServerWide.ClusterStateMachine;\n+using static Raven.Server.Documents.DocumentsStorage;\n+using static Raven.Server.ServerWide.Commands.CompareExchangeCommandBase;\n+\n+namespace Raven.Server.Storage.Schema.Updates.Server\n+{\n+    public unsafe class From11 : ISchemaUpdate\n+    {\n+        public bool Update(UpdateStep step)\n+        {\n+            var dbs = new List<string>();\n+            const string dbKey = \"db/\";\n+\n+            var oldCompareExchangeSchema = new TableSchema().\n+                DefineKey(new TableSchema.SchemaIndexDef\n+            {\n+                StartIndex = (int)UniqueItems.Key,\n+                Count = 1\n+            });\n+\n+            var items = step.ReadTx.OpenTable(ItemsSchema, Items);\n+            using (Slice.From(step.ReadTx.Allocator, dbKey, out Slice loweredPrefix))\n+            {\n+                foreach (var result in items.SeekByPrimaryKeyPrefix(loweredPrefix, Slices.Empty, 0))","path":"src/Raven.Server/Storage/Schema/Updates/Server/From11.cs","position":28,"original_position":28,"commit_id":"218affcce8557ea3b8a7d183e5002a1bda5feabe","original_commit_id":"218affcce8557ea3b8a7d183e5002a1bda5feabe","user":{"login":"garayx","id":16625387,"node_id":"MDQ6VXNlcjE2NjI1Mzg3","avatar_url":"https://avatars1.githubusercontent.com/u/16625387?v=4","gravatar_id":"","url":"https://api.github.com/users/garayx","html_url":"https://github.com/garayx","followers_url":"https://api.github.com/users/garayx/followers","following_url":"https://api.github.com/users/garayx/following{/other_user}","gists_url":"https://api.github.com/users/garayx/gists{/gist_id}","starred_url":"https://api.github.com/users/garayx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garayx/subscriptions","organizations_url":"https://api.github.com/users/garayx/orgs","repos_url":"https://api.github.com/users/garayx/repos","events_url":"https://api.github.com/users/garayx/events{/privacy}","received_events_url":"https://api.github.com/users/garayx/received_events","type":"User","site_admin":false},"body":"loweredPrefix slice is made from \"db/\" string.","created_at":"2019-02-20T13:46:24Z","updated_at":"2019-02-20T13:46:24Z","html_url":"https://github.com/ravendb/ravendb/pull/8735#discussion_r258487092","pull_request_url":"https://api.github.com/repos/ravendb/ravendb/pulls/8735","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ravendb/ravendb/pulls/comments/258487092"},"html":{"href":"https://github.com/ravendb/ravendb/pull/8735#discussion_r258487092"},"pull_request":{"href":"https://api.github.com/repos/ravendb/ravendb/pulls/8735"}},"in_reply_to_id":258463723},"pull_request":{"url":"https://api.github.com/repos/ravendb/ravendb/pulls/8735","id":254219382,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU0MjE5Mzgy","html_url":"https://github.com/ravendb/ravendb/pull/8735","diff_url":"https://github.com/ravendb/ravendb/pull/8735.diff","patch_url":"https://github.com/ravendb/ravendb/pull/8735.patch","issue_url":"https://api.github.com/repos/ravendb/ravendb/issues/8735","number":8735,"state":"open","locked":false,"title":"RavenDB-11139: Add CompareExchange & identities incremental backup, C…","user":{"login":"garayx","id":16625387,"node_id":"MDQ6VXNlcjE2NjI1Mzg3","avatar_url":"https://avatars1.githubusercontent.com/u/16625387?v=4","gravatar_id":"","url":"https://api.github.com/users/garayx","html_url":"https://github.com/garayx","followers_url":"https://api.github.com/users/garayx/followers","following_url":"https://api.github.com/users/garayx/following{/other_user}","gists_url":"https://api.github.com/users/garayx/gists{/gist_id}","starred_url":"https://api.github.com/users/garayx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garayx/subscriptions","organizations_url":"https://api.github.com/users/garayx/orgs","repos_url":"https://api.github.com/users/garayx/repos","events_url":"https://api.github.com/users/garayx/events{/privacy}","received_events_url":"https://api.github.com/users/garayx/received_events","type":"User","site_admin":false},"body":"…ompareExchangeTombstones schema, upgrade system schema, tests.","created_at":"2019-02-19T11:38:39Z","updated_at":"2019-02-20T13:46:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1093054486,"node_id":"MDU6TGFiZWwxMDkzMDU0NDg2","url":"https://api.github.com/repos/ravendb/ravendb/labels/v4.2","name":"v4.2","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ravendb/ravendb/pulls/8735/commits","review_comments_url":"https://api.github.com/repos/ravendb/ravendb/pulls/8735/comments","review_comment_url":"https://api.github.com/repos/ravendb/ravendb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ravendb/ravendb/issues/8735/comments","statuses_url":"https://api.github.com/repos/ravendb/ravendb/statuses/218affcce8557ea3b8a7d183e5002a1bda5feabe","head":{"label":"garayx:RavenDB-11139_v4.2","ref":"RavenDB-11139_v4.2","sha":"218affcce8557ea3b8a7d183e5002a1bda5feabe","user":{"login":"garayx","id":16625387,"node_id":"MDQ6VXNlcjE2NjI1Mzg3","avatar_url":"https://avatars1.githubusercontent.com/u/16625387?v=4","gravatar_id":"","url":"https://api.github.com/users/garayx","html_url":"https://github.com/garayx","followers_url":"https://api.github.com/users/garayx/followers","following_url":"https://api.github.com/users/garayx/following{/other_user}","gists_url":"https://api.github.com/users/garayx/gists{/gist_id}","starred_url":"https://api.github.com/users/garayx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garayx/subscriptions","organizations_url":"https://api.github.com/users/garayx/orgs","repos_url":"https://api.github.com/users/garayx/repos","events_url":"https://api.github.com/users/garayx/events{/privacy}","received_events_url":"https://api.github.com/users/garayx/received_events","type":"User","site_admin":false},"repo":{"id":147069330,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcwNjkzMzA=","name":"ravendb","full_name":"garayx/ravendb","private":false,"owner":{"login":"garayx","id":16625387,"node_id":"MDQ6VXNlcjE2NjI1Mzg3","avatar_url":"https://avatars1.githubusercontent.com/u/16625387?v=4","gravatar_id":"","url":"https://api.github.com/users/garayx","html_url":"https://github.com/garayx","followers_url":"https://api.github.com/users/garayx/followers","following_url":"https://api.github.com/users/garayx/following{/other_user}","gists_url":"https://api.github.com/users/garayx/gists{/gist_id}","starred_url":"https://api.github.com/users/garayx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garayx/subscriptions","organizations_url":"https://api.github.com/users/garayx/orgs","repos_url":"https://api.github.com/users/garayx/repos","events_url":"https://api.github.com/users/garayx/events{/privacy}","received_events_url":"https://api.github.com/users/garayx/received_events","type":"User","site_admin":false},"html_url":"https://github.com/garayx/ravendb","description":"ACID Document Database","fork":true,"url":"https://api.github.com/repos/garayx/ravendb","forks_url":"https://api.github.com/repos/garayx/ravendb/forks","keys_url":"https://api.github.com/repos/garayx/ravendb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/garayx/ravendb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/garayx/ravendb/teams","hooks_url":"https://api.github.com/repos/garayx/ravendb/hooks","issue_events_url":"https://api.github.com/repos/garayx/ravendb/issues/events{/number}","events_url":"https://api.github.com/repos/garayx/ravendb/events","assignees_url":"https://api.github.com/repos/garayx/ravendb/assignees{/user}","branches_url":"https://api.github.com/repos/garayx/ravendb/branches{/branch}","tags_url":"https://api.github.com/repos/garayx/ravendb/tags","blobs_url":"https://api.github.com/repos/garayx/ravendb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/garayx/ravendb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/garayx/ravendb/git/refs{/sha}","trees_url":"https://api.github.com/repos/garayx/ravendb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/garayx/ravendb/statuses/{sha}","languages_url":"https://api.github.com/repos/garayx/ravendb/languages","stargazers_url":"https://api.github.com/repos/garayx/ravendb/stargazers","contributors_url":"https://api.github.com/repos/garayx/ravendb/contributors","subscribers_url":"https://api.github.com/repos/garayx/ravendb/subscribers","subscription_url":"https://api.github.com/repos/garayx/ravendb/subscription","commits_url":"https://api.github.com/repos/garayx/ravendb/commits{/sha}","git_commits_url":"https://api.github.com/repos/garayx/ravendb/git/commits{/sha}","comments_url":"https://api.github.com/repos/garayx/ravendb/comments{/number}","issue_comment_url":"https://api.github.com/repos/garayx/ravendb/issues/comments{/number}","contents_url":"https://api.github.com/repos/garayx/ravendb/contents/{+path}","compare_url":"https://api.github.com/repos/garayx/ravendb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/garayx/ravendb/merges","archive_url":"https://api.github.com/repos/garayx/ravendb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/garayx/ravendb/downloads","issues_url":"https://api.github.com/repos/garayx/ravendb/issues{/number}","pulls_url":"https://api.github.com/repos/garayx/ravendb/pulls{/number}","milestones_url":"https://api.github.com/repos/garayx/ravendb/milestones{/number}","notifications_url":"https://api.github.com/repos/garayx/ravendb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/garayx/ravendb/labels{/name}","releases_url":"https://api.github.com/repos/garayx/ravendb/releases{/id}","deployments_url":"https://api.github.com/repos/garayx/ravendb/deployments","created_at":"2018-09-02T08:49:42Z","updated_at":"2018-09-02T08:50:05Z","pushed_at":"2019-02-19T11:37:47Z","git_url":"git://github.com/garayx/ravendb.git","ssh_url":"git@github.com:garayx/ravendb.git","clone_url":"https://github.com/garayx/ravendb.git","svn_url":"https://github.com/garayx/ravendb","homepage":"https://ravendb.net","size":484227,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"v4.1"}},"base":{"label":"ravendb:v4.2","ref":"v4.2","sha":"da83b781fa4baa3b4ceb86a72c2189adca79eb90","user":{"login":"ravendb","id":213792,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMzc5Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/213792?v=4","gravatar_id":"","url":"https://api.github.com/users/ravendb","html_url":"https://github.com/ravendb","followers_url":"https://api.github.com/users/ravendb/followers","following_url":"https://api.github.com/users/ravendb/following{/other_user}","gists_url":"https://api.github.com/users/ravendb/gists{/gist_id}","starred_url":"https://api.github.com/users/ravendb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravendb/subscriptions","organizations_url":"https://api.github.com/users/ravendb/orgs","repos_url":"https://api.github.com/users/ravendb/repos","events_url":"https://api.github.com/users/ravendb/events{/privacy}","received_events_url":"https://api.github.com/users/ravendb/received_events","type":"Organization","site_admin":false},"repo":{"id":542714,"node_id":"MDEwOlJlcG9zaXRvcnk1NDI3MTQ=","name":"ravendb","full_name":"ravendb/ravendb","private":false,"owner":{"login":"ravendb","id":213792,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMzc5Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/213792?v=4","gravatar_id":"","url":"https://api.github.com/users/ravendb","html_url":"https://github.com/ravendb","followers_url":"https://api.github.com/users/ravendb/followers","following_url":"https://api.github.com/users/ravendb/following{/other_user}","gists_url":"https://api.github.com/users/ravendb/gists{/gist_id}","starred_url":"https://api.github.com/users/ravendb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravendb/subscriptions","organizations_url":"https://api.github.com/users/ravendb/orgs","repos_url":"https://api.github.com/users/ravendb/repos","events_url":"https://api.github.com/users/ravendb/events{/privacy}","received_events_url":"https://api.github.com/users/ravendb/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ravendb/ravendb","description":"ACID Document Database","fork":false,"url":"https://api.github.com/repos/ravendb/ravendb","forks_url":"https://api.github.com/repos/ravendb/ravendb/forks","keys_url":"https://api.github.com/repos/ravendb/ravendb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ravendb/ravendb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ravendb/ravendb/teams","hooks_url":"https://api.github.com/repos/ravendb/ravendb/hooks","issue_events_url":"https://api.github.com/repos/ravendb/ravendb/issues/events{/number}","events_url":"https://api.github.com/repos/ravendb/ravendb/events","assignees_url":"https://api.github.com/repos/ravendb/ravendb/assignees{/user}","branches_url":"https://api.github.com/repos/ravendb/ravendb/branches{/branch}","tags_url":"https://api.github.com/repos/ravendb/ravendb/tags","blobs_url":"https://api.github.com/repos/ravendb/ravendb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ravendb/ravendb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ravendb/ravendb/git/refs{/sha}","trees_url":"https://api.github.com/repos/ravendb/ravendb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ravendb/ravendb/statuses/{sha}","languages_url":"https://api.github.com/repos/ravendb/ravendb/languages","stargazers_url":"https://api.github.com/repos/ravendb/ravendb/stargazers","contributors_url":"https://api.github.com/repos/ravendb/ravendb/contributors","subscribers_url":"https://api.github.com/repos/ravendb/ravendb/subscribers","subscription_url":"https://api.github.com/repos/ravendb/ravendb/subscription","commits_url":"https://api.github.com/repos/ravendb/ravendb/commits{/sha}","git_commits_url":"https://api.github.com/repos/ravendb/ravendb/git/commits{/sha}","comments_url":"https://api.github.com/repos/ravendb/ravendb/comments{/number}","issue_comment_url":"https://api.github.com/repos/ravendb/ravendb/issues/comments{/number}","contents_url":"https://api.github.com/repos/ravendb/ravendb/contents/{+path}","compare_url":"https://api.github.com/repos/ravendb/ravendb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ravendb/ravendb/merges","archive_url":"https://api.github.com/repos/ravendb/ravendb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ravendb/ravendb/downloads","issues_url":"https://api.github.com/repos/ravendb/ravendb/issues{/number}","pulls_url":"https://api.github.com/repos/ravendb/ravendb/pulls{/number}","milestones_url":"https://api.github.com/repos/ravendb/ravendb/milestones{/number}","notifications_url":"https://api.github.com/repos/ravendb/ravendb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ravendb/ravendb/labels{/name}","releases_url":"https://api.github.com/repos/ravendb/ravendb/releases{/id}","deployments_url":"https://api.github.com/repos/ravendb/ravendb/deployments","created_at":"2010-03-02T11:05:30Z","updated_at":"2019-02-20T12:17:11Z","pushed_at":"2019-02-20T13:36:28Z","git_url":"git://github.com/ravendb/ravendb.git","ssh_url":"git@github.com:ravendb/ravendb.git","clone_url":"https://github.com/ravendb/ravendb.git","svn_url":"https://github.com/ravendb/ravendb","homepage":"https://ravendb.net","size":486312,"stargazers_count":2125,"watchers_count":2125,"language":"C#","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":710,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":710,"open_issues":6,"watchers":2125,"default_branch":"v4.1"}},"_links":{"self":{"href":"https://api.github.com/repos/ravendb/ravendb/pulls/8735"},"html":{"href":"https://github.com/ravendb/ravendb/pull/8735"},"issue":{"href":"https://api.github.com/repos/ravendb/ravendb/issues/8735"},"comments":{"href":"https://api.github.com/repos/ravendb/ravendb/issues/8735/comments"},"review_comments":{"href":"https://api.github.com/repos/ravendb/ravendb/pulls/8735/comments"},"review_comment":{"href":"https://api.github.com/repos/ravendb/ravendb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ravendb/ravendb/pulls/8735/commits"},"statuses":{"href":"https://api.github.com/repos/ravendb/ravendb/statuses/218affcce8557ea3b8a7d183e5002a1bda5feabe"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"garayx"}}