)]}'
{"neutron/plugins/ml2/drivers/type_gre.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"890c0035a9a9097bcb6a3bfd86d5155fae54db69","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        return p_const.TYPE_GRE"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def initialize(self):"},{"line_number":69,"context_line":"        import time"},{"line_number":70,"context_line":"        start \u003d time.time()"},{"line_number":71,"context_line":"        self.gre_id_ranges \u003d []"},{"line_number":72,"context_line":"        self._parse_tunnel_ranges("}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_9b35a8aa","line":69,"updated":"2014-07-16 12:41:53.000000000","message":"this should be at the top of the file","commit_id":"b2b88d11f75c68aa27d31fb17e805275fa32409e"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"99f07bda0168e0a242ab171d66b534576106b285","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        return p_const.TYPE_GRE"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def initialize(self):"},{"line_number":69,"context_line":"        import time"},{"line_number":70,"context_line":"        start \u003d time.time()"},{"line_number":71,"context_line":"        self.gre_id_ranges \u003d []"},{"line_number":72,"context_line":"        self._parse_tunnel_ranges("}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_7bed34b7","line":69,"in_reply_to":"baada198_9b35a8aa","updated":"2014-07-16 12:52:42.000000000","message":"This time measurement is required for testing and debugging and will be removed once the change is ready for review.","commit_id":"b2b88d11f75c68aa27d31fb17e805275fa32409e"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"890c0035a9a9097bcb6a3bfd86d5155fae54db69","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        )"},{"line_number":77,"context_line":"        self._sync_gre_allocations()"},{"line_number":78,"context_line":"        delta \u003d time.time() - start"},{"line_number":79,"context_line":"        LOG.debug(_(\"Elapsed time: {0}\").format(delta))"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    def reserve_provider_segment(self, session, segment):"},{"line_number":82,"context_line":"        segmentation_id \u003d segment.get(api.SEGMENTATION_ID)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_fb44e41c","line":79,"updated":"2014-07-16 12:41:53.000000000","message":"no need for translations with debug messages","commit_id":"b2b88d11f75c68aa27d31fb17e805275fa32409e"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"bdb26385297477a8e15f7300d336d3ed56636e1b","unresolved":false,"context_lines":[{"line_number":172,"context_line":"            for gre_id_list in chunked_gre_ids:"},{"line_number":173,"context_line":"                bulk \u003d [{\u0027gre_id\u0027: gre_id, \u0027allocated\u0027: False}"},{"line_number":174,"context_line":"                        for gre_id in gre_id_list]"},{"line_number":175,"context_line":"                session.execute(GreAllocation.__table__.insert(), bulk)"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    def get_gre_allocation(self, session, gre_id):"},{"line_number":178,"context_line":"        return session.query(GreAllocation).filter_by(gre_id\u003dgre_id).first()"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_3bf49cce","line":175,"updated":"2014-07-16 12:44:30.000000000","message":"be careful current implementation and you change does not support concurrency.","commit_id":"b2b88d11f75c68aa27d31fb17e805275fa32409e"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"879c8ee2ea82c08b560eb5eb5c72a46f36fd4543","unresolved":false,"context_lines":[{"line_number":172,"context_line":"            for gre_id_list in chunked_gre_ids:"},{"line_number":173,"context_line":"                bulk \u003d [{\u0027gre_id\u0027: gre_id, \u0027allocated\u0027: False}"},{"line_number":174,"context_line":"                        for gre_id in gre_id_list]"},{"line_number":175,"context_line":"                session.execute(GreAllocation.__table__.insert(), bulk)"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    def get_gre_allocation(self, session, gre_id):"},{"line_number":178,"context_line":"        return session.query(GreAllocation).filter_by(gre_id\u003dgre_id).first()"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_5192ebf6","line":175,"in_reply_to":"baada198_308107fc","updated":"2014-07-17 08:12:26.000000000","message":"With postgresql, the lockmode has no effect when the table is empty.\n\nMoreover lockmode usage should be avoided when possible because of galera limitations.","commit_id":"b2b88d11f75c68aa27d31fb17e805275fa32409e"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"99f07bda0168e0a242ab171d66b534576106b285","unresolved":false,"context_lines":[{"line_number":172,"context_line":"            for gre_id_list in chunked_gre_ids:"},{"line_number":173,"context_line":"                bulk \u003d [{\u0027gre_id\u0027: gre_id, \u0027allocated\u0027: False}"},{"line_number":174,"context_line":"                        for gre_id in gre_id_list]"},{"line_number":175,"context_line":"                session.execute(GreAllocation.__table__.insert(), bulk)"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    def get_gre_allocation(self, session, gre_id):"},{"line_number":178,"context_line":"        return session.query(GreAllocation).filter_by(gre_id\u003dgre_id).first()"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_7be0d496","line":175,"in_reply_to":"baada198_3bf49cce","updated":"2014-07-16 12:52:42.000000000","message":"Thank you for mentioning it. I plan to work on this further to make it support concurrency.","commit_id":"b2b88d11f75c68aa27d31fb17e805275fa32409e"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"e887643a8026b06ef1b1aae7f63d4520a7aa5f6c","unresolved":false,"context_lines":[{"line_number":172,"context_line":"            for gre_id_list in chunked_gre_ids:"},{"line_number":173,"context_line":"                bulk \u003d [{\u0027gre_id\u0027: gre_id, \u0027allocated\u0027: False}"},{"line_number":174,"context_line":"                        for gre_id in gre_id_list]"},{"line_number":175,"context_line":"                session.execute(GreAllocation.__table__.insert(), bulk)"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    def get_gre_allocation(self, session, gre_id):"},{"line_number":178,"context_line":"        return session.query(GreAllocation).filter_by(gre_id\u003dgre_id).first()"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_308107fc","line":175,"in_reply_to":"baada198_3bf49cce","updated":"2014-07-16 19:17:13.000000000","message":"well, it should support concurrency: note with_lockmode(\"update\").all() at the beginning of the transaction","commit_id":"b2b88d11f75c68aa27d31fb17e805275fa32409e"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"0b942b030f859ab867bbdf9c448d197c0638ef58","unresolved":false,"context_lines":[{"line_number":172,"context_line":"            for gre_id_list in chunked_gre_ids:"},{"line_number":173,"context_line":"                bulk \u003d [{\u0027gre_id\u0027: gre_id, \u0027allocated\u0027: False}"},{"line_number":174,"context_line":"                        for gre_id in gre_id_list]"},{"line_number":175,"context_line":"                session.execute(GreAllocation.__table__.insert(), bulk)"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    def get_gre_allocation(self, session, gre_id):"},{"line_number":178,"context_line":"        return session.query(GreAllocation).filter_by(gre_id\u003dgre_id).first()"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_fe565c29","line":175,"in_reply_to":"baada198_5192ebf6","updated":"2014-07-17 14:36:47.000000000","message":"\u003e   With postgresql, the lockmode has no effect when the table is empty.\n\nConfirmed","commit_id":"b2b88d11f75c68aa27d31fb17e805275fa32409e"}]}
