{"action":"created","comment":{"url":"https://api.github.com/repos/mongodb/mongo-c-driver/pulls/comments/26864191","id":26864191,"diff_hunk":"@@ -737,13 +738,13 @@ _mongoc_uri_build_write_concern (mongoc_uri_t *uri) /* IN */\n          value = bson_iter_int32 (&iter);\n \n          switch (value) {\n-         case -1:\n-            mongoc_write_concern_set_w (write_concern,\n-                                        MONGOC_WRITE_CONCERN_W_ERRORS_IGNORED);\n-            break;\n-         case 0:\n-            mongoc_write_concern_set_w (write_concern,\n-                                        MONGOC_WRITE_CONCERN_W_UNACKNOWLEDGED);\n+         case MONGOC_WRITE_CONCERN_W_ERRORS_IGNORED:\n+         case MONGOC_WRITE_CONCERN_W_UNACKNOWLEDGED:\n+            /* Warn on conflict, since write concern will be validated later */\n+            if (mongoc_write_concern_get_journal(write_concern)) {\n+               MONGOC_WARNING(\"Journal conflicts with w value [w=%d].\", value);","path":"src/mongoc/mongoc-uri.c","position":23,"original_position":23,"commit_id":"8929e8dcaf153dd905593596b83e182fffbddffb","original_commit_id":"8929e8dcaf153dd905593596b83e182fffbddffb","user":{"login":"bjori","id":72407,"avatar_url":"https://avatars.githubusercontent.com/u/72407?v=3","gravatar_id":"","url":"https://api.github.com/users/bjori","html_url":"https://github.com/bjori","followers_url":"https://api.github.com/users/bjori/followers","following_url":"https://api.github.com/users/bjori/following{/other_user}","gists_url":"https://api.github.com/users/bjori/gists{/gist_id}","starred_url":"https://api.github.com/users/bjori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjori/subscriptions","organizations_url":"https://api.github.com/users/bjori/orgs","repos_url":"https://api.github.com/users/bjori/repos","events_url":"https://api.github.com/users/bjori/events{/privacy}","received_events_url":"https://api.github.com/users/bjori/received_events","type":"User","site_admin":false},"body":"fyi; I have not found a realistic solution on how to upgrade these warnings to be able to programmatically deal with them in phongo.","created_at":"2015-03-20T18:29:13Z","updated_at":"2015-03-20T18:29:13Z","html_url":"https://github.com/mongodb/mongo-c-driver/pull/194#discussion_r26864191","pull_request_url":"https://api.github.com/repos/mongodb/mongo-c-driver/pulls/194","_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-c-driver/pulls/comments/26864191"},"html":{"href":"https://github.com/mongodb/mongo-c-driver/pull/194#discussion_r26864191"},"pull_request":{"href":"https://api.github.com/repos/mongodb/mongo-c-driver/pulls/194"}}},"pull_request":{"url":"https://api.github.com/repos/mongodb/mongo-c-driver/pulls/194","id":31100884,"html_url":"https://github.com/mongodb/mongo-c-driver/pull/194","diff_url":"https://github.com/mongodb/mongo-c-driver/pull/194.diff","patch_url":"https://github.com/mongodb/mongo-c-driver/pull/194.patch","issue_url":"https://api.github.com/repos/mongodb/mongo-c-driver/issues/194","number":194,"state":"open","locked":false,"title":"CDRIVER-580: fsync or j in write concern can imply GLE","user":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"body":"https://jira.mongodb.org/browse/CDRIVER-580","created_at":"2015-03-13T05:23:20Z","updated_at":"2015-03-20T18:29:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aaccdb193308328a59d51f3246eb44cdd42cb7af","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongo-c-driver/pulls/194/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongo-c-driver/pulls/194/comments","review_comment_url":"https://api.github.com/repos/mongodb/mongo-c-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb/mongo-c-driver/issues/194/comments","statuses_url":"https://api.github.com/repos/mongodb/mongo-c-driver/statuses/8929e8dcaf153dd905593596b83e182fffbddffb","head":{"label":"jmikola:cdriver-580","ref":"cdriver-580","sha":"8929e8dcaf153dd905593596b83e182fffbddffb","user":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"repo":{"id":24768140,"name":"mongo-c-driver","full_name":"jmikola/mongo-c-driver","owner":{"login":"jmikola","id":244663,"avatar_url":"https://avatars.githubusercontent.com/u/244663?v=3","gravatar_id":"","url":"https://api.github.com/users/jmikola","html_url":"https://github.com/jmikola","followers_url":"https://api.github.com/users/jmikola/followers","following_url":"https://api.github.com/users/jmikola/following{/other_user}","gists_url":"https://api.github.com/users/jmikola/gists{/gist_id}","starred_url":"https://api.github.com/users/jmikola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmikola/subscriptions","organizations_url":"https://api.github.com/users/jmikola/orgs","repos_url":"https://api.github.com/users/jmikola/repos","events_url":"https://api.github.com/users/jmikola/events{/privacy}","received_events_url":"https://api.github.com/users/jmikola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmikola/mongo-c-driver","description":"A high-performance MongoDB driver for C","fork":true,"url":"https://api.github.com/repos/jmikola/mongo-c-driver","forks_url":"https://api.github.com/repos/jmikola/mongo-c-driver/forks","keys_url":"https://api.github.com/repos/jmikola/mongo-c-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmikola/mongo-c-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmikola/mongo-c-driver/teams","hooks_url":"https://api.github.com/repos/jmikola/mongo-c-driver/hooks","issue_events_url":"https://api.github.com/repos/jmikola/mongo-c-driver/issues/events{/number}","events_url":"https://api.github.com/repos/jmikola/mongo-c-driver/events","assignees_url":"https://api.github.com/repos/jmikola/mongo-c-driver/assignees{/user}","branches_url":"https://api.github.com/repos/jmikola/mongo-c-driver/branches{/branch}","tags_url":"https://api.github.com/repos/jmikola/mongo-c-driver/tags","blobs_url":"https://api.github.com/repos/jmikola/mongo-c-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmikola/mongo-c-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmikola/mongo-c-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmikola/mongo-c-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmikola/mongo-c-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/jmikola/mongo-c-driver/languages","stargazers_url":"https://api.github.com/repos/jmikola/mongo-c-driver/stargazers","contributors_url":"https://api.github.com/repos/jmikola/mongo-c-driver/contributors","subscribers_url":"https://api.github.com/repos/jmikola/mongo-c-driver/subscribers","subscription_url":"https://api.github.com/repos/jmikola/mongo-c-driver/subscription","commits_url":"https://api.github.com/repos/jmikola/mongo-c-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmikola/mongo-c-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmikola/mongo-c-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmikola/mongo-c-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmikola/mongo-c-driver/contents/{+path}","compare_url":"https://api.github.com/repos/jmikola/mongo-c-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmikola/mongo-c-driver/merges","archive_url":"https://api.github.com/repos/jmikola/mongo-c-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmikola/mongo-c-driver/downloads","issues_url":"https://api.github.com/repos/jmikola/mongo-c-driver/issues{/number}","pulls_url":"https://api.github.com/repos/jmikola/mongo-c-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/jmikola/mongo-c-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/jmikola/mongo-c-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmikola/mongo-c-driver/labels{/name}","releases_url":"https://api.github.com/repos/jmikola/mongo-c-driver/releases{/id}","created_at":"2014-10-03T17:55:14Z","updated_at":"2015-03-13T01:07:48Z","pushed_at":"2015-03-20T18:21:33Z","git_url":"git://github.com/jmikola/mongo-c-driver.git","ssh_url":"git@github.com:jmikola/mongo-c-driver.git","clone_url":"https://github.com/jmikola/mongo-c-driver.git","svn_url":"https://github.com/jmikola/mongo-c-driver","homepage":"","size":10058,"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":"mongodb:master","ref":"master","sha":"208355d7a49fa66ab100c353c14d1afe1276e432","user":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":9735077,"name":"mongo-c-driver","full_name":"mongodb/mongo-c-driver","owner":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongodb/mongo-c-driver","description":"A high-performance MongoDB driver for C","fork":false,"url":"https://api.github.com/repos/mongodb/mongo-c-driver","forks_url":"https://api.github.com/repos/mongodb/mongo-c-driver/forks","keys_url":"https://api.github.com/repos/mongodb/mongo-c-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongo-c-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongo-c-driver/teams","hooks_url":"https://api.github.com/repos/mongodb/mongo-c-driver/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongo-c-driver/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongo-c-driver/events","assignees_url":"https://api.github.com/repos/mongodb/mongo-c-driver/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongo-c-driver/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongo-c-driver/tags","blobs_url":"https://api.github.com/repos/mongodb/mongo-c-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongo-c-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongo-c-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongo-c-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongo-c-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongo-c-driver/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongo-c-driver/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongo-c-driver/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongo-c-driver/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongo-c-driver/subscription","commits_url":"https://api.github.com/repos/mongodb/mongo-c-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongo-c-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongo-c-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongo-c-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/mongo-c-driver/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongo-c-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongo-c-driver/merges","archive_url":"https://api.github.com/repos/mongodb/mongo-c-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongo-c-driver/downloads","issues_url":"https://api.github.com/repos/mongodb/mongo-c-driver/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongo-c-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongo-c-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongo-c-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongo-c-driver/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongo-c-driver/releases{/id}","created_at":"2013-04-28T19:34:36Z","updated_at":"2015-03-18T02:13:34Z","pushed_at":"2015-03-20T18:21:34Z","git_url":"git://github.com/mongodb/mongo-c-driver.git","ssh_url":"git@github.com:mongodb/mongo-c-driver.git","clone_url":"https://github.com/mongodb/mongo-c-driver.git","svn_url":"https://github.com/mongodb/mongo-c-driver","homepage":"","size":17958,"stargazers_count":106,"watchers_count":106,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":86,"mirror_url":null,"open_issues_count":10,"forks":86,"open_issues":10,"watchers":106,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-c-driver/pulls/194"},"html":{"href":"https://github.com/mongodb/mongo-c-driver/pull/194"},"issue":{"href":"https://api.github.com/repos/mongodb/mongo-c-driver/issues/194"},"comments":{"href":"https://api.github.com/repos/mongodb/mongo-c-driver/issues/194/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongo-c-driver/pulls/194/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/mongo-c-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb/mongo-c-driver/pulls/194/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongo-c-driver/statuses/8929e8dcaf153dd905593596b83e182fffbddffb"}}}}