{"action":"created","issue":{"url":"https://api.github.com/repos/wiredtiger/wiredtiger/issues/1734","labels_url":"https://api.github.com/repos/wiredtiger/wiredtiger/issues/1734/labels{/name}","comments_url":"https://api.github.com/repos/wiredtiger/wiredtiger/issues/1734/comments","events_url":"https://api.github.com/repos/wiredtiger/wiredtiger/issues/1734/events","html_url":"https://github.com/wiredtiger/wiredtiger/pull/1734","id":60265788,"number":1734,"title":"Statistics cursor reset","user":{"login":"keithbostic","id":1393186,"avatar_url":"https://avatars.githubusercontent.com/u/1393186?v=3","gravatar_id":"","url":"https://api.github.com/users/keithbostic","html_url":"https://github.com/keithbostic","followers_url":"https://api.github.com/users/keithbostic/followers","following_url":"https://api.github.com/users/keithbostic/following{/other_user}","gists_url":"https://api.github.com/users/keithbostic/gists{/gist_id}","starred_url":"https://api.github.com/users/keithbostic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithbostic/subscriptions","organizations_url":"https://api.github.com/users/keithbostic/orgs","repos_url":"https://api.github.com/users/keithbostic/repos","events_url":"https://api.github.com/users/keithbostic/events{/privacy}","received_events_url":"https://api.github.com/users/keithbostic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wiredtiger/wiredtiger/labels/Feature","name":"Feature","color":"339933"}],"state":"open","locked":false,"assignee":{"login":"keithbostic","id":1393186,"avatar_url":"https://avatars.githubusercontent.com/u/1393186?v=3","gravatar_id":"","url":"https://api.github.com/users/keithbostic","html_url":"https://github.com/keithbostic","followers_url":"https://api.github.com/users/keithbostic/followers","following_url":"https://api.github.com/users/keithbostic/following{/other_user}","gists_url":"https://api.github.com/users/keithbostic/gists{/gist_id}","starred_url":"https://api.github.com/users/keithbostic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithbostic/subscriptions","organizations_url":"https://api.github.com/users/keithbostic/orgs","repos_url":"https://api.github.com/users/keithbostic/repos","events_url":"https://api.github.com/users/keithbostic/events{/privacy}","received_events_url":"https://api.github.com/users/keithbostic/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/wiredtiger/wiredtiger/milestones/35","html_url":"https://github.com/wiredtiger/wiredtiger/milestones/2.5.1","labels_url":"https://api.github.com/repos/wiredtiger/wiredtiger/milestones/35/labels","id":913861,"number":35,"title":"2.5.1","description":"2.5.1 release","creator":{"login":"agorrod","id":1930121,"avatar_url":"https://avatars.githubusercontent.com/u/1930121?v=3","gravatar_id":"","url":"https://api.github.com/users/agorrod","html_url":"https://github.com/agorrod","followers_url":"https://api.github.com/users/agorrod/followers","following_url":"https://api.github.com/users/agorrod/following{/other_user}","gists_url":"https://api.github.com/users/agorrod/gists{/gist_id}","starred_url":"https://api.github.com/users/agorrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agorrod/subscriptions","organizations_url":"https://api.github.com/users/agorrod/orgs","repos_url":"https://api.github.com/users/agorrod/repos","events_url":"https://api.github.com/users/agorrod/events{/privacy}","received_events_url":"https://api.github.com/users/agorrod/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":138,"state":"open","created_at":"2014-12-24T01:42:41Z","updated_at":"2015-03-10T18:28:56Z","due_on":"2015-03-17T04:00:00Z","closed_at":null},"comments":3,"created_at":"2015-03-08T17:07:50Z","updated_at":"2015-03-10T19:09:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wiredtiger/wiredtiger/pulls/1734","html_url":"https://github.com/wiredtiger/wiredtiger/pull/1734","diff_url":"https://github.com/wiredtiger/wiredtiger/pull/1734.diff","patch_url":"https://github.com/wiredtiger/wiredtiger/pull/1734.patch"},"body":"@michael, I think this is close to what we need for #1533, two questions:\r\n\r\n1. I couldn't think of any way to avoid copying the incoming configuration strings when the cursor is opened.\r\n\r\n1. I almost made the change to not initialize the cursor when opening it (if we wait until the first operation after cursor-reset to initialize the cursor, might as well wait until the first operation after cursor-open to initialize the cursor), but for some reason, that makes Python sad, I get;\r\n```\r\nFile \"/b/bostic/wt.develop/lang/python/wiredtiger/__init__.py\", line 337, in __getitem__\r\nraise KeyError\r\nKeyError```\r\n"},"comment":{"url":"https://api.github.com/repos/wiredtiger/wiredtiger/issues/comments/78125187","html_url":"https://github.com/wiredtiger/wiredtiger/pull/1734#issuecomment-78125187","issue_url":"https://api.github.com/repos/wiredtiger/wiredtiger/issues/1734","id":78125187,"user":{"login":"keithbostic","id":1393186,"avatar_url":"https://avatars.githubusercontent.com/u/1393186?v=3","gravatar_id":"","url":"https://api.github.com/users/keithbostic","html_url":"https://github.com/keithbostic","followers_url":"https://api.github.com/users/keithbostic/followers","following_url":"https://api.github.com/users/keithbostic/following{/other_user}","gists_url":"https://api.github.com/users/keithbostic/gists{/gist_id}","starred_url":"https://api.github.com/users/keithbostic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithbostic/subscriptions","organizations_url":"https://api.github.com/users/keithbostic/orgs","repos_url":"https://api.github.com/users/keithbostic/repos","events_url":"https://api.github.com/users/keithbostic/events{/privacy}","received_events_url":"https://api.github.com/users/keithbostic/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T19:09:03Z","updated_at":"2015-03-10T19:09:03Z","body":"@michaelcahill, I've investigated why cursors can't start out uninitialized. I made it work (it was a bug in my code), but ran into a subsequent problem.\r\n\r\nHigher level cursors (for example, tables), don't do cursor operations, they simply aggregate the statistics from the underlying handles after making the cursor-open call. We could change those functions to always do a `WT_CURSOR.next` after an open, but I don't see much point in doing that just to delay the initial snapshot to the first operation."}}