{"action":"created","issue":{"url":"https://api.github.com/repos/brigade/mock_redis/issues/144","repository_url":"https://api.github.com/repos/brigade/mock_redis","labels_url":"https://api.github.com/repos/brigade/mock_redis/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/brigade/mock_redis/issues/144/comments","events_url":"https://api.github.com/repos/brigade/mock_redis/issues/144/events","html_url":"https://github.com/brigade/mock_redis/issues/144","id":344796759,"node_id":"MDU6SXNzdWUzNDQ3OTY3NTk=","number":144,"title":"Multi block within pipelined block","user":{"login":"hiphip90","id":6410329,"node_id":"MDQ6VXNlcjY0MTAzMjk=","avatar_url":"https://avatars2.githubusercontent.com/u/6410329?v=4","gravatar_id":"","url":"https://api.github.com/users/hiphip90","html_url":"https://github.com/hiphip90","followers_url":"https://api.github.com/users/hiphip90/followers","following_url":"https://api.github.com/users/hiphip90/following{/other_user}","gists_url":"https://api.github.com/users/hiphip90/gists{/gist_id}","starred_url":"https://api.github.com/users/hiphip90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiphip90/subscriptions","organizations_url":"https://api.github.com/users/hiphip90/orgs","repos_url":"https://api.github.com/users/hiphip90/repos","events_url":"https://api.github.com/users/hiphip90/events{/privacy}","received_events_url":"https://api.github.com/users/hiphip90/received_events","type":"User","site_admin":false},"labels":[{"id":90868324,"node_id":"MDU6TGFiZWw5MDg2ODMyNA==","url":"https://api.github.com/repos/brigade/mock_redis/labels/bug","name":"bug","color":"f7c6c7","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-26T11:01:41Z","updated_at":"2018-08-03T17:51:30Z","closed_at":null,"author_association":"NONE","body":"MR gets stuck in multi mode if multi block is called like so:\r\n\r\n```ruby\r\nmr.pipelined do\r\n  mr.multi do\r\n    mr.set('abc', 'abv')\r\n  end\r\nend\r\n```\r\n\r\nresults in:\r\n\r\n```ruby\r\n[9] pry(main)> mr\r\n=> #<MockRedis:0x0000000664bd78\r\n @db=\r\n  #<MockRedis::PipelinedWrapper:0x0000000664b940\r\n   @db=\r\n    #<MockRedis::TransactionWrapper:0x0000000664b990\r\n     @db=\r\n      #<MockRedis::ExpireWrapper:0x0000000664b9b8\r\n       @db=\r\n        #<MockRedis::MultiDbWrapper:0x0000000664bbe8\r\n         @databases={0=>#<MockRedis::Database:0x0000000664bcd8 @base=#<MockRedis:0x0000000664bd78 ...>, @data={\"abc\"=>\"abv\"}, @expire_times=[]>},\r\n         @db_index=0,\r\n         @prototype_db=#<MockRedis::Database:0x0000000664bb70 @base=#<MockRedis:0x0000000664bd78 ...>, @data={}, @expire_times=[]>>>,\r\n     @in_multi=true,\r\n     @multi_block_given=false,\r\n     @transaction_futures=[]>,\r\n   @in_pipeline=false,\r\n   @pipelined_futures=[]>,\r\n @options={:scheme=>\"redis\", :host=>\"127.0.0.1\", :port=>6379, :path=>nil, :timeout=>5.0, :password=>nil, :db=>0, :time_class=>Time}>\r\n \r\n[10] pry(main)> mr.get('abc')\r\n=> \"QUEUED\"\r\n```\r\n\r\nExplicit `exec` does finish transaction though.\r\nThis does not occur if `multi` is used with explicit `exec` in the first place, or blocks are nested other way around - `pipelined` within `multi`."},"comment":{"url":"https://api.github.com/repos/brigade/mock_redis/issues/comments/410328703","html_url":"https://github.com/brigade/mock_redis/issues/144#issuecomment-410328703","issue_url":"https://api.github.com/repos/brigade/mock_redis/issues/144","id":410328703,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDMyODcwMw==","user":{"login":"hiphip90","id":6410329,"node_id":"MDQ6VXNlcjY0MTAzMjk=","avatar_url":"https://avatars2.githubusercontent.com/u/6410329?v=4","gravatar_id":"","url":"https://api.github.com/users/hiphip90","html_url":"https://github.com/hiphip90","followers_url":"https://api.github.com/users/hiphip90/followers","following_url":"https://api.github.com/users/hiphip90/following{/other_user}","gists_url":"https://api.github.com/users/hiphip90/gists{/gist_id}","starred_url":"https://api.github.com/users/hiphip90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiphip90/subscriptions","organizations_url":"https://api.github.com/users/hiphip90/orgs","repos_url":"https://api.github.com/users/hiphip90/repos","events_url":"https://api.github.com/users/hiphip90/events{/privacy}","received_events_url":"https://api.github.com/users/hiphip90/received_events","type":"User","site_admin":false},"created_at":"2018-08-03T17:51:30Z","updated_at":"2018-08-03T17:51:30Z","author_association":"NONE","body":"@sds done."}}
{"actor":{"display_login":"hiphip90"}}