)]}'
{"dragonflow/tests/database/_dummy_db_driver.py":[{"author":{"_account_id":17880,"name":"Shachar Snapiri","email":"shachar.snapiri@toganetworks.com","username":"snapiri"},"change_message_id":"ca1a4bea8b82d82440c53ee19aaddece9e374507","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    def allocate_unique_key(self, table):"},{"line_number":73,"context_line":"        with self._unique_keys_lock:"},{"line_number":74,"context_line":"            unique_key_table \u003d self._db[db_common.UNIQUE_KEY_TABLE]"},{"line_number":75,"context_line":"            unique_key \u003d unique_key_table.get(table, 0) + 1"},{"line_number":76,"context_line":"            unique_key_table[table] \u003d unique_key"},{"line_number":77,"context_line":"        return unique_key"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def process_ha(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_c6749bd1","line":76,"range":{"start_line":75,"start_character":0,"end_line":76,"end_character":48},"updated":"2017-10-17 08:04:02.000000000","message":"Can\u0027t this logic be hidden into the unique key table itself?","commit_id":"7284618b1875e08f1b64891862f57098dfcf0766"},{"author":{"_account_id":23766,"name":"Dima Kuznetsov","email":"dima.kuznetsov@toganetworks.com","username":"dimak"},"change_message_id":"46860bb25227b890d44a7a459d6124372dc3f4d4","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    def allocate_unique_key(self, table):"},{"line_number":73,"context_line":"        with self._unique_keys_lock:"},{"line_number":74,"context_line":"            unique_key_table \u003d self._db[db_common.UNIQUE_KEY_TABLE]"},{"line_number":75,"context_line":"            unique_key \u003d unique_key_table.get(table, 0) + 1"},{"line_number":76,"context_line":"            unique_key_table[table] \u003d unique_key"},{"line_number":77,"context_line":"        return unique_key"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def process_ha(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_35139368","line":76,"range":{"start_line":75,"start_character":0,"end_line":76,"end_character":48},"in_reply_to":"5f4e5783_c6749bd1","updated":"2017-10-17 11:16:12.000000000","message":"The table is a dict, so there\u0027s not much we can do to add it there. I\u0027ll move it to a dedicate fuction if we\u0027ll need this piece of code somewhere else too.","commit_id":"7284618b1875e08f1b64891862f57098dfcf0766"}]}
