{"action":"created","issue":{"url":"https://api.github.com/repos/dgraph-io/badger/issues/437","repository_url":"https://api.github.com/repos/dgraph-io/badger","labels_url":"https://api.github.com/repos/dgraph-io/badger/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/dgraph-io/badger/issues/437/comments","events_url":"https://api.github.com/repos/dgraph-io/badger/issues/437/events","html_url":"https://github.com/dgraph-io/badger/pull/437","id":304109940,"number":437,"title":"Do not panic if database is closed","user":{"login":"adelowo","id":12677701,"avatar_url":"https://avatars3.githubusercontent.com/u/12677701?v=4","gravatar_id":"","url":"https://api.github.com/users/adelowo","html_url":"https://github.com/adelowo","followers_url":"https://api.github.com/users/adelowo/followers","following_url":"https://api.github.com/users/adelowo/following{/other_user}","gists_url":"https://api.github.com/users/adelowo/gists{/gist_id}","starred_url":"https://api.github.com/users/adelowo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adelowo/subscriptions","organizations_url":"https://api.github.com/users/adelowo/orgs","repos_url":"https://api.github.com/users/adelowo/repos","events_url":"https://api.github.com/users/adelowo/events{/privacy}","received_events_url":"https://api.github.com/users/adelowo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-03-10T22:11:30Z","updated_at":"2018-03-15T19:40:34Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/dgraph-io/badger/pulls/437","html_url":"https://github.com/dgraph-io/badger/pull/437","diff_url":"https://github.com/dgraph-io/badger/pull/437.diff","patch_url":"https://github.com/dgraph-io/badger/pull/437.patch"},"body":"Fixes #420 and #374\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/dgraph-io/badger/437)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/dgraph-io/badger/issues/comments/373498859","html_url":"https://github.com/dgraph-io/badger/pull/437#issuecomment-373498859","issue_url":"https://api.github.com/repos/dgraph-io/badger/issues/437","id":373498859,"user":{"login":"manishrjain","id":1782324,"avatar_url":"https://avatars1.githubusercontent.com/u/1782324?v=4","gravatar_id":"","url":"https://api.github.com/users/manishrjain","html_url":"https://github.com/manishrjain","followers_url":"https://api.github.com/users/manishrjain/followers","following_url":"https://api.github.com/users/manishrjain/following{/other_user}","gists_url":"https://api.github.com/users/manishrjain/gists{/gist_id}","starred_url":"https://api.github.com/users/manishrjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishrjain/subscriptions","organizations_url":"https://api.github.com/users/manishrjain/orgs","repos_url":"https://api.github.com/users/manishrjain/repos","events_url":"https://api.github.com/users/manishrjain/events{/privacy}","received_events_url":"https://api.github.com/users/manishrjain/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T19:40:34Z","updated_at":"2018-03-15T19:40:34Z","author_association":"OWNER","body":"Thanks for this. But, the code which is calling the new `isClosed` function isn't being shown in the list. Can you paste the full `Get` function?\r\n\r\n```\r\n(pprof) list Get\r\nTotal: 3.53s\r\nROUTINE ======================== github.com/dgraph-io/badger.(*Txn).Get in /Users/lanreadelowo/go/src/github.com/dgraph-io/badger/transaction.go\r\n      20ms      1.70s (flat, cum) 48.16% of Total\r\n         .          .    331:           return nil, ErrEmptyKey\r\n         .          .    332:   } else if txn.discarded {\r\n         .          .    333:           return nil, ErrDiscardedTxn\r\n         .          .    334:   }\r\n         .          .    335:\r\n      10ms      380ms    336:   item = new(Item)\r\n         .          .    337:   if txn.update {\r\n```"}}
{"actor":{"display_login":"manishrjain"}}