)]}'
{"cinder/objects/status.py":[{"author":{"_account_id":13900,"name":"Accela Zhao","email":"accelazh@gmail.com","username":"accelazh"},"change_message_id":"2b83b2313024b111c9331731d4c48bf59ea47276","unresolved":false,"context_lines":[{"line_number":49,"context_line":"            resource.raw_status \u003d\u003d AVAILABLE)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"def fix_status(context, resource, operation\u003dREADING):"},{"line_number":53,"context_line":"    # We must always acquire the lock for the resource before calling this"},{"line_number":54,"context_line":"    # method"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_c45bb4f5","line":52,"updated":"2015-08-07 18:30:21.000000000","message":"I think this method should be put into cinder objects. Since every time you invoke, an object is passed in as the `resource`. It looks like a method that belongs to the objects.","commit_id":"787c7748db34a939d8180bf9d2c6fef4377752d3"},{"author":{"_account_id":13900,"name":"Accela Zhao","email":"accelazh@gmail.com","username":"accelazh"},"change_message_id":"2b83b2313024b111c9331731d4c48bf59ea47276","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        # picked again from the queue"},{"line_number":60,"context_line":"        if resource.raw_status in (DELETING, ATTACHING, DETACHING):"},{"line_number":61,"context_line":"            # If we are doing the \"recovery\" because we are going to do the"},{"line_number":62,"context_line":"            # same operation the status is OK"},{"line_number":63,"context_line":"            if operation \u003d\u003d resource.raw_status:"},{"line_number":64,"context_line":"                break"},{"line_number":65,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_e44b505e","line":62,"updated":"2015-08-07 18:30:21.000000000","message":"But even if the same operation/status, it may also be because another person is operating but happen to be in this same operation/status. Then as a result, two person operating together on the same resource.","commit_id":"787c7748db34a939d8180bf9d2c6fef4377752d3"}]}
