141101 20:14:15 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141101 20:14:15 mysqld_safe WSREP: Running position recovery with --log_error='/var/lib/mysql/wsrep_recovery.vYXGiH' --pid-file='/var/lib/mysql/carbon-recover.pid'
141101 20:24:01 mysqld_safe WSREP: Failed to recover position: '141101 20:14:15 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2014-11-01 20:14:15 7fd2bdd987c0 InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!
2014-11-01 20:14:15 7fd2bdd987c0 InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!
141101 20:14:15 [Note] InnoDB: The InnoDB memory heap is disabled
141101 20:14:15 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
141101 20:14:15 [Note] InnoDB: Memory barrier is not used
141101 20:14:15 [Note] InnoDB: Compressed tables use zlib 1.2.8
141101 20:14:15 [Note] InnoDB: Using Linux native AIO
141101 20:14:15 [Note] InnoDB: Not using CPU crc32 instructions
141101 20:14:15 [Note] InnoDB: Initializing buffer pool, size = 128.0M
141101 20:14:15 [Note] InnoDB: Completed initialization of buffer pool
141101 20:14:15 [Note] InnoDB: Highest supported file format is Barracuda.
141101 20:14:16 [Note] InnoDB: 128 rollback segment(s) are active.
141101 20:14:16 [Note] InnoDB: Waiting for purge to start
141101 20:14:16 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.20-68.0 started; log sequence number 8834625
141101 20:14:16 [Note] Plugin 'FEEDBACK' is disabled.
141101 20:14:16 [ERROR] Function 'TokuDB' already exists
141101 20:14:16 [Warning] Couldn't load plugin named 'TokuDB' with soname 'ha_tokudb.so'.
141101 20:14:16 [ERROR] Function 'TokuDB_trx' already exists
141101 20:14:16 [Warning] Couldn't load plugin named 'TokuDB_trx' with soname 'ha_tokudb.so'.
141101 20:14:16 [ERROR] Function 'TokuDB_lock_waits' already exists
141101 20:14:16 [Warning] Couldn't load plugin named 'TokuDB_lock_waits' with soname 'ha_tokudb.so'.
141101 20:14:16 [ERROR] Function 'TokuDB_locks' already exists
141101 20:14:16 [Warning] Couldn't load plugin named 'TokuDB_locks' with soname 'ha_tokudb.so'.
141101 20:14:16 [ERROR] Function 'TokuDB_file_map' already exists
141101 20:14:16 [Warning] Couldn't load plugin named 'TokuDB_file_map' with soname 'ha_tokudb.so'.
141101 20:14:16 [ERROR] Function 'TokuDB_fractal_tree_info' already exists
141101 20:14:16 [Warning] Couldn't load plugin named 'TokuDB_fractal_tree_info' with soname 'ha_tokudb.so'.
141101 20:14:16 [ERROR] Function 'TokuDB_fractal_tree_block_map' already exists
141101 20:14:16 [Warning] Couldn't load plugin named 'TokuDB_fractal_tree_block_map' with soname 'ha_tokudb.so'.
141101 20:14:16 [Note] Event Scheduler: Loaded 0 events
141101 20:14:16 [Note] WSREP: Read nil XID from storage engines, skipping position init
141101 20:14:16 [Note] WSREP: wsrep_load(): loading provider library 'none'
141101 20:14:16 [Note] /usr/libexec/mysqld: ready for connections.
Version: '10.1.1-MariaDB-wsrep-debug'  socket: '/var/run/mysql/mysql.sock'  port: 0  MariaDB Server, wsrep_25.10.r4123
141101 20:23:58 [Note] /usr/libexec/mysqld: Normal shutdown

141101 20:23:58 [Note] Event Scheduler: Purging the queue. 0 events
141101 20:24:00 [Note] InnoDB: FTS optimize thread exiting.
141101 20:24:00 [Note] InnoDB: Starting shutdown...
141101 20:24:01 [Note] InnoDB: Shutdown completed; log sequence number 8834635
141101 20:24:01 [Note] /usr/libexec/mysqld: Shutdown complete'
141101 20:24:12 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141101 20:24:12 mysqld_safe WSREP: Running position recovery with --log_error='/var/lib/mysql/wsrep_recovery.v3oONP' --pid-file='/var/lib/mysql/carbon-recover.pid'
my_realpath: info: executing realpath
my_realpath: info: executing realpath
?func: info: /usr/libexec/mysqld  Ver 10.1.1-MariaDB-wsrep-debug for Linux on x86_64

set_max_open_files: info: rlim_cur: 1024  rlim_max: 4096
item_create_init: info: native function: ST_DIMENSION  length: 12
item_create_init: info: native function: LINEFROMWKB  length: 11
item_create_init: info: native function: POLYFROMWKB  length: 11
item_create_init: info: native function: AES_DECRYPT  length: 11
item_create_init: info: native function: IS_IPV4_COMPAT  length: 14
item_create_init: info: native function: ACOS  length: 4
item_create_init: info: native function: IFNULL  length: 6
item_create_init: info: native function: ATAN  length: 4
item_create_init: info: native function: POW  length: 3
item_create_init: info: native function: ST_DIFFERENCE  length: 13
item_create_init: info: native function: UPPER  length: 5
item_create_init: info: native function: GEOMETRYN  length: 9
item_create_init: info: native function: MASTER_POS_WAIT  length: 15
item_create_init: info: native function: BIT_LENGTH  length: 10
item_create_init: info: native function: GEOMETRYCOLLECTIONFROMWKB  length: 25
item_create_init: info: native function: RAND  length: 4
item_create_init: info: native function: MASTER_GTID_WAIT  length: 16
item_create_init: info: native function: ASTEXT  length: 6
item_create_init: info: native function: REGEXP_SUBSTR  length: 13
item_create_init: info: native function: EQUALS  length: 6
item_create_init: info: native function: POINTFROMTEXT  length: 13
item_create_init: info: native function: INET_NTOA  length: 9
item_create_init: info: native function: DIMENSION  length: 9
item_create_init: info: native function: ASIN  length: 4
item_create_init: info: native function: SRID  length: 4
item_create_init: info: native function: ISNULL  length: 6
item_create_init: info: native function: MPOINTFROMTEXT  length: 14
item_create_init: info: native function: CONCAT_WS  length: 9
item_create_init: info: native function: ST_EQUALS  length: 9
item_create_init: info: native function: COLUMN_JSON  length: 11
item_create_init: info: native function: LINESTRINGFROMWKB  length: 17
item_create_init: info: native function: CHAR_LENGTH  length: 11
item_create_init: info: native function: ST_LINESTRINGFROMTEXT  length: 21
item_create_init: info: native function: COMPRESS  length: 8
item_create_init: info: native function: PI  length: 2
item_create_init: info: native function: LEAST  length: 5
item_create_init: info: native function: ATAN2  length: 5
item_create_init: info: native function: DATEDIFF  length: 8
item_create_init: info: native function: POLYFROMTEXT  length: 12
item_create_init: info: native function: COS  length: 3
item_create_init: info: native function: ST_OVERLAPS  length: 11
item_create_init: info: native function: CENTROID  length: 8
item_create_init: info: native function: ST_ISEMPTY  length: 10
item_create_init: info: native function: EXTERIORRING  length: 12
item_create_init: info: native function: ST_LINEFROMWKB  length: 14
item_create_init: info: native function: ELT  length: 3
item_create_init: info: native function: ISSIMPLE  length: 8
item_create_init: info: native function: CRC32  length: 5
item_create_init: info: native function: ST_ENVELOPE  length: 11
item_create_init: info: native function: AES_ENCRYPT  length: 11
item_create_init: info: native function: GET_LOCK  length: 8
item_create_init: info: native function: INTERSECTS  length: 10
item_create_init: info: native function: ST_GEOMCOLLFROMTEXT  length: 19
item_create_init: info: native function: ST_NUMGEOMETRIES  length: 16
item_create_init: info: native function: ST_SRID  length: 7
item_create_init: info: native function: DISJOINT  length: 8
item_create_init: info: native function: ST_ASTEXT  length: 9
item_create_init: info: native function: COT  length: 3
item_create_init: info: native function: ST_INTERSECTION  length: 15
item_create_init: info: native function: EXP  length: 3
item_create_init: info: native function: MULTILINESTRINGFROMWKB  length: 22
item_create_init: info: native function: ISEMPTY  length: 7
item_create_init: info: native function: ST_CROSSES  length: 10
item_create_init: info: native function: DAYOFYEAR  length: 9
item_create_init: info: native function: ST_ENDPOINT  length: 11
item_create_init: info: native function: CONVERT_TZ  length: 10
item_create_init: info: native function: LINESTRINGFROMTEXT  length: 18
item_create_init: info: native function: DAYOFWEEK  length: 9
item_create_init: info: native function: ST_INTERSECTS  length: 13
item_create_init: info: native function: GEOMETRYFROMWKB  length: 15
item_create_init: info: native function: COLUMN_LIST  length: 11
item_create_init: info: native function: DES_DECRYPT  length: 11
item_create_init: info: native function: CEIL  length: 4
item_create_init: info: native function: DECODE_HISTOGRAM  length: 16
item_create_init: info: native function: UPDATEXML  length: 9
item_create_init: info: native function: FIND_IN_SET  length: 11
item_create_init: info: native function: FROM_UNIXTIME  length: 13
item_create_init: info: native function: ENDPOINT  length: 8
item_create_init: info: native function: OCT  length: 3
item_create_init: info: native function: ASWKT  length: 5
item_create_init: info: native function: MLINEFROMWKB  length: 12
item_create_init: info: native function: NUMGEOMETRIES  length: 13
item_create_init: info: native function: ST_CENTROID  length: 11
item_create_init: info: native function: LCASE  length: 5
item_create_init: info: native function: SPACE  length: 5
item_create_init: info: native function: ENCRYPT  length: 7
item_create_init: info: native function: SHA  length: 3
item_create_init: info: native function: ABS  length: 3
item_create_init: info: native function: ST_DISTANCE  length: 11
item_create_init: info: native function: GEOMCOLLFROMTEXT  length: 16
item_create_init: info: native function: SUBSTRING_INDEX  length: 15
item_create_init: info: native function: BIT_COUNT  length: 9
item_create_init: info: native function: TO_DAYS  length: 7
item_create_init: info: native function: DAYNAME  length: 7
item_create_init: info: native function: SLEEP  length: 5
item_create_init: info: native function: IS_IPV4_MAPPED  length: 14
item_create_init: info: native function: INET6_ATON  length: 10
item_create_init: info: native function: CONCAT  length: 6
item_create_init: info: native function: ENVELOPE  length: 8
item_create_init: info: native function: DATE_FORMAT  length: 11
item_create_init: info: native function: QUOTE  length: 5
item_create_init: info: native function: INET6_NTOA  length: 10
item_create_init: info: native function: POLYGONFROMTEXT  length: 15
item_create_init: info: native function: EXPORT_SET  length: 10
item_create_init: info: native function: NUMPOINTS  length: 9
item_create_init: info: native function: INET_ATON  length: 9
item_create_init: info: native function: MBRWITHIN  length: 9
item_create_init: info: native function: ST_BUFFER  length: 9
item_create_init: info: native function: ST_GEOMFROMWKB  length: 14
item_create_init: info: native function: POINTN  length: 6
item_create_init: info: native function: FLOOR  length: 5
item_create_init: info: native function: GEOMFROMWKB  length: 11
item_create_init: info: native function: ST_GEOMETRYCOLLECTIONFROMWKB  length: 28
item_create_init: info: native function: ENCODE  length: 6
item_create_init: info: native function: ST_NUMPOINTS  length: 12
item_create_init: info: native function: MBRINTERSECTS  length: 13
item_create_init: info: native function: TO_BASE64  length: 9
item_create_init: info: native function: ASWKB  length: 5
item_create_init: info: native function: DECODE  length: 6
item_create_init: info: native function: IS_FREE_LOCK  length: 12
item_create_init: info: native function: WEEKDAY  length: 7
item_create_init: info: native function: LOAD_FILE  length: 9
item_create_init: info: native function: YEARWEEK  length: 8
item_create_init: info: native function: LINEFROMTEXT  length: 12
item_create_init: info: native function: ST_INTERIORRINGN  length: 16
item_create_init: info: native function: BUFFER  length: 6
item_create_init: info: native function: POINTFROMWKB  length: 12
item_create_init: info: native function: LIKE_RANGE_MIN  length: 14
item_create_init: info: native function: REVERSE  length: 7
item_create_init: info: native function: LOWER  length: 5
item_create_init: info: native function: MAKEDATE  length: 8
item_create_init: info: native function: LOG  length: 3
item_create_init: info: native function: UNCOMPRESSED_LENGTH  length: 19
item_create_init: info: native function: COERCIBILITY  length: 12
item_create_init: info: native function: ADDTIME  length: 7
item_create_init: info: native function: MD5  length: 3
item_create_init: info: native function: SEC_TO_TIME  length: 11
item_create_init: info: native function: GREATEST  length: 8
item_create_init: info: native function: POWER  length: 5
item_create_init: info: native function: MAKETIME  length: 8
item_create_init: info: native function: TOUCHES  length: 7
item_create_init: info: native function: MLINEFROMTEXT  length: 13
item_create_init: info: native function: ST_POINTFROMTEXT  length: 16
item_create_init: info: native function: FOUND_ROWS  length: 10
item_create_init: info: native function: SUBTIME  length: 7
item_create_init: info: native function: CONNECTION_ID  length: 13
item_create_init: info: native function: OVERLAPS  length: 8
item_create_init: info: native function: LOG2  length: 4
item_create_init: info: native function: ST_ASWKT  length: 8
item_create_init: info: native function: LPAD  length: 4
item_create_init: info: native function: PERIOD_ADD  length: 10
item_create_init: info: native function: ISCLOSED  length: 8
item_create_init: info: native function: ST_GEOMETRYTYPE  length: 15
item_create_init: info: native function: RADIANS  length: 7
item_create_init: info: native function: SQRT  length: 4
item_create_init: info: native function: COLUMN_CHECK  length: 12
item_create_init: info: native function: BINLOG_GTID_POS  length: 15
item_create_init: info: native function: CHARACTER_LENGTH  length: 16
item_create_init: info: native function: ST_Y  length: 4
item_create_init: info: native function: CONV  length: 4
item_create_init: info: native function: WITHIN  length: 6
item_create_init: info: native function: MBREQUAL  length: 8
item_create_init: info: native function: SIN  length: 3
item_create_init: info: native function: MPOINTFROMWKB  length: 13
item_create_init: info: native function: MONTHNAME  length: 9
item_create_init: info: native function: DEGREES  length: 7
item_create_init: info: native function: TAN  length: 3
item_create_init: info: native function: GEOMETRYFROMTEXT  length: 16
item_create_init: info: native function: ST_UNION  length: 8
item_create_init: info: native function: COLUMN_EXISTS  length: 13
item_create_init: info: native function: VERSION  length: 7
item_create_init: info: native function: DAYOFMONTH  length: 10
item_create_init: info: native function: ST_POLYFROMWKB  length: 14
item_create_init: info: native function: CEILING  length: 7
item_create_init: info: native function: ST_ISCLOSED  length: 11
item_create_init: info: native function: OCTET_LENGTH  length: 12
item_create_init: info: native function: STR_TO_DATE  length: 11
item_create_init: info: native function: IS_USED_LOCK  length: 12
item_create_init: info: native function: GEOMETRYCOLLECTIONFROMTEXT  length: 26
item_create_init: info: native function: MULTIPOLYGONFROMWKB  length: 19
item_create_init: info: native function: UNIX_TIMESTAMP  length: 14
item_create_init: info: native function: MULTILINESTRINGFROMTEXT  length: 23
item_create_init: info: native function: INTERIORRINGN  length: 13
item_create_init: info: native function: RTRIM  length: 5
item_create_init: info: native function: UUID  length: 4
item_create_init: info: native function: X  length: 1
item_create_init: info: native function: MULTIPOINTFROMWKB  length: 17
item_create_init: info: native function: REGEXP_REPLACE  length: 14
item_create_init: info: native function: Y  length: 1
item_create_init: info: native function: NUMINTERIORRINGS  length: 16
item_create_init: info: native function: MBRTOUCHES  length: 10
item_create_init: info: native function: ASBINARY  length: 8
item_create_init: info: native function: ST_LINESTRINGFROMWKB  length: 20
item_create_init: info: native function: MPOLYFROMTEXT  length: 13
item_create_init: info: native function: TIME_FORMAT  length: 11
item_create_init: info: native function: FIELD  length: 5
item_create_init: info: native function: TIME_TO_SEC  length: 11
item_create_init: info: native function: RPAD  length: 4
item_create_init: info: native function: HEX  length: 3
item_create_init: info: native function: FROM_DAYS  length: 9
item_create_init: info: native function: ST_ASWKB  length: 8
item_create_init: info: native function: MPOLYFROMWKB  length: 12
item_create_init: info: native function: ST_POINTFROMWKB  length: 15
item_create_init: info: native function: ROUND  length: 5
item_create_init: info: native function: MBRDISJOINT  length: 11
item_create_init: info: native function: GEOMETRYTYPE  length: 12
item_create_init: info: native function: TO_SECONDS  length: 10
item_create_init: info: native function: PERIOD_DIFF  length: 11
item_create_init: info: native function: ST_CONTAINS  length: 11
item_create_init: info: native function: FORMAT  length: 6
item_create_init: info: native function: LENGTH  length: 6
item_create_init: info: native function: LAST_INSERT_ID  length: 14
item_create_init: info: native function: UCASE  length: 5
item_create_init: info: native function: ST_GIS_DEBUG  length: 12
item_create_init: info: native function: LOG10  length: 5
item_create_init: info: native function: LOCATE  length: 6
item_create_init: info: native function: INSTR  length: 5
item_create_init: info: native function: LIKE_RANGE_MAX  length: 14
item_create_init: info: native function: SOUNDEX  length: 7
item_create_init: info: native function: ST_EQUALS  length: 9
item_create_init: info: native function: ST_POLYFROMTEXT  length: 15
item_create_init: info: native function: ORD  length: 3
item_create_init: info: native function: ST_GEOMFROMTEXT  length: 15
item_create_init: info: native function: LN  length: 2
item_create_init: info: native function: NAME_CONST  length: 10
item_create_init: info: native function: EXTRACTVALUE  length: 12
item_create_init: info: native function: BIN  length: 3
item_create_init: info: native function: MULTIPOLYGONFROMTEXT  length: 20
item_create_init: info: native function: ST_STARTPOINT  length: 13
item_create_init: info: native function: ST_ASBINARY  length: 11
item_create_init: info: native function: GEOMFROMTEXT  length: 12
item_create_init: info: native function: POLYGONFROMWKB  length: 14
item_create_init: info: native function: MBROVERLAPS  length: 11
item_create_init: info: native function: ST_LENGTH  length: 9
item_create_init: info: native function: ST_WITHIN  length: 9
item_create_init: info: native function: STRCMP  length: 6
item_create_init: info: native function: BENCHMARK  length: 9
item_create_init: info: native function: ST_EXTERIORRING  length: 15
item_create_init: info: native function: UNCOMPRESS  length: 10
item_create_init: info: native function: RELEASE_LOCK  length: 12
item_create_init: info: native function: WEEKOFYEAR  length: 10
item_create_init: info: native function: SHA2  length: 4
item_create_init: info: native function: ST_POINTN  length: 9
item_create_init: info: native function: ST_GEOMETRYN  length: 12
item_create_init: info: native function: ST_GEOMETRYFROMTEXT  length: 19
item_create_init: info: native function: REGEXP_INSTR  length: 12
item_create_init: info: native function: UNHEX  length: 5
item_create_init: info: native function: AREA  length: 4
item_create_init: info: native function: FROM_BASE64  length: 11
item_create_init: info: native function: ST_AREA  length: 7
item_create_init: info: native function: TIMEDIFF  length: 8
item_create_init: info: native function: ST_POLYGONFROMWKB  length: 17
item_create_init: info: native function: ST_X  length: 4
item_create_init: info: native function: IS_IPV6  length: 7
item_create_init: info: native function: ST_TOUCHES  length: 10
item_create_init: info: native function: IS_IPV4  length: 7
item_create_init: info: native function: ST_DISJOINT  length: 11
item_create_init: info: native function: MULTIPOINTFROMTEXT  length: 18
item_create_init: info: native function: ST_POLYGONFROMTEXT  length: 18
item_create_init: info: native function: DES_ENCRYPT  length: 11
item_create_init: info: native function: LTRIM  length: 5
item_create_init: info: native function: ST_LINEFROMTEXT  length: 15
item_create_init: info: native function: LAST_DAY  length: 8
item_create_init: info: native function: ST_GEOMCOLLFROMWKB  length: 18
item_create_init: info: native function: NULLIF  length: 6
item_create_init: info: native function: ST_NUMINTERIORRINGS  length: 19
item_create_init: info: native function: ST_SYMDIFFERENCE  length: 16
item_create_init: info: native function: MBRCONTAINS  length: 11
item_create_init: info: native function: GLENGTH  length: 7
item_create_init: info: native function: GEOMCOLLFROMWKB  length: 15
item_create_init: info: native function: MAKE_SET  length: 8
item_create_init: info: native function: SHA1  length: 4
item_create_init: info: native function: ST_GEOMETRYCOLLECTIONFROMTEXT  length: 29
item_create_init: info: native function: ST_ISSIMPLE  length: 11
item_create_init: info: native function: STARTPOINT  length: 10
item_create_init: info: native function: SIGN  length: 4
item_create_init: info: native function: ST_GEOMETRYFROMWKB  length: 18
item_create_init: info: native function: CROSSES  length: 7
item_create_init: info: native function: UUID_SHORT  length: 10
get_charsets_dir: info: charsets dir: '/usr/share/mysql/charsets/'
?func: info: lower_case_table_names: 0
141101 20:25:44 mysqld_safe WSREP: Failed to recover position: 'init_simple_key_cache: info: key_cache_block_size: 1024
141101 20:24:12 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2014-11-01 20:24:12 7f79a7bc27c0 InnoDB: !!!!!!!! UNIV_DEBUG switched on !!!!!!!!!
2014-11-01 20:24:12 7f79a7bc27c0 InnoDB: !!!!!!!! UNIV_SYNC_DEBUG switched on !!!!!!!!!
141101 20:24:12 [Note] InnoDB: The InnoDB memory heap is disabled
141101 20:24:12 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
141101 20:24:12 [Note] InnoDB: Memory barrier is not used
141101 20:24:12 [Note] InnoDB: Compressed tables use zlib 1.2.8
141101 20:24:12 [Note] InnoDB: Using Linux native AIO
141101 20:24:12 [Note] InnoDB: Not using CPU crc32 instructions
141101 20:24:12 [Note] InnoDB: Initializing buffer pool, size = 128.0M
141101 20:24:12 [Note] InnoDB: Completed initialization of buffer pool
141101 20:24:12 [Note] InnoDB: Highest supported file format is Barracuda.
add_identifier: info: conv 'SYS_TABLESPACES' -> 'SYS_TABLESPACES'
add_identifier: info: conv 'SYS_FOREIGN' -> 'SYS_FOREIGN'
add_identifier: info: conv 'SYS_DATAFILES' -> 'SYS_DATAFILES'
add_identifier: info: conv 'SYS_DATAFILES' -> 'SYS_DATAFILES'
add_identifier: info: conv 'SYS_FOREIGN' -> 'SYS_FOREIGN'
add_identifier: info: conv 'SYS_FOREIGN_COLS' -> 'SYS_FOREIGN_COLS'
add_identifier: info: conv 'SYS_TABLESPACES' -> 'SYS_TABLESPACES'
add_identifier: info: conv 'mysql' -> 'mysql'
add_identifier: info: conv 'gtid_slave_pos' -> 'gtid_slave_pos'
add_identifier: info: conv 'mysql' -> 'mysql'
add_identifier: info: conv 'innodb_index_stats' -> 'innodb_index_stats'
add_identifier: info: conv 'mysql' -> 'mysql'
add_identifier: info: conv 'innodb_table_stats' -> 'innodb_table_stats'
add_identifier: info: conv 'oq_test' -> 'oq_test'
add_identifier: info: conv 'oq_backing' -> 'oq_backing'
add_identifier: info: conv 'skynet' -> 'skynet'
add_identifier: info: conv 'airports' -> 'airports'
add_identifier: info: conv 'skynet' -> 'skynet'
add_identifier: info: conv 'flight_bookmarks' -> 'flight_bookmarks'
add_identifier: info: conv 'skynet' -> 'skynet'
add_identifier: info: conv 'flight_cache_status' -> 'flight_cache_status'
add_identifier: info: conv 'skynet' -> 'skynet'
add_identifier: info: conv 'flights' -> 'flights'
add_identifier: info: conv 'skynet' -> 'skynet'
add_identifier: info: conv 'map_venues' -> 'map_venues'
add_identifier: info: conv 'skynet' -> 'skynet'
add_identifier: info: conv 'statics' -> 'statics'
141101 20:24:13 [Note] InnoDB: 128 rollback segment(s) are active.
add_identifier: info: conv 'SYS_FOREIGN_COLS' -> 'SYS_FOREIGN_COLS'
141101 20:24:13 [Note] InnoDB: Waiting for purge to start
141101 20:24:13 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.20-68.0 started; log sequence number 8834635
ha_initialize_handlerton: info: dummy_transaction_object: 0x7f79a9807500
ma_control_file_open: info: crc: 2782412770
ma_control_file_open: info: crc: 3027337538
init_pagecache: info: block_size: 8192
init_pagecache: info: block_size: 8192
check_translog_description_table: info: record type: 0  class: 0  fixed: 0  header: 0  LSNs: 0  name: reserved
check_translog_description_table: info: record type: 1  class: 1  fixed: 0  header: 8  LSNs: 0  name: redo_insert_row_head
check_translog_description_table: info: record type: 2  class: 1  fixed: 0  header: 8  LSNs: 0  name: redo_insert_row_tail
check_translog_description_table: info: record type: 3  class: 1  fixed: 0  header: 8  LSNs: 0  name: redo_new_row_head
check_translog_description_table: info: record type: 4  class: 1  fixed: 0  header: 8  LSNs: 0  name: redo_new_row_tail
check_translog_description_table: info: record type: 5  class: 1  fixed: 0  header: 2  LSNs: 0  name: redo_insert_row_blobs
check_translog_description_table: info: record type: 6  class: 3  fixed: 8  header: 8  LSNs: 0  name: redo_purge_row_head
check_translog_description_table: info: record type: 7  class: 3  fixed: 8  header: 8  LSNs: 0  name: redo_purge_row_tail
check_translog_description_table: info: record type: 8  class: 1  fixed: 0  header: 4  LSNs: 0  name: redo_free_blocks
check_translog_description_table: info: record type: 9  class: 3  fixed: 7  header: 7  LSNs: 0  name: redo_free_head_or_tail
check_translog_description_table: info: record type: 10  class: 3  fixed: 16  header: 16  LSNs: 0  name: redo_delete_row
check_translog_description_table: info: record type: 11  class: 1  fixed: 0  header: 9  LSNs: 0  name: redo_update_row_head
check_translog_description_table: info: record type: 12  class: 1  fixed: 0  header: 9  LSNs: 0  name: redo_index
check_translog_description_table: info: record type: 13  class: 1  fixed: 0  header: 14  LSNs: 0  name: redo_index_new_page
check_translog_description_table: info: record type: 14  class: 3  fixed: 12  header: 12  LSNs: 0  name: redo_index_free_page
check_translog_description_table: info: record type: 15  class: 3  fixed: 16  header: 16  LSNs: 0  name: redo_undelete_row
check_translog_description_table: info: record type: 16  class: 1  fixed: 0  header: 10  LSNs: 1  name: clr_end
check_translog_description_table: info: record type: 17  class: 2  fixed: 5  header: 5  LSNs: 1  name: purge_end
check_translog_description_table: info: record type: 18  class: 1  fixed: 0  header: 15  LSNs: 1  name: undo_row_insert
check_translog_description_table: info: record type: 19  class: 1  fixed: 0  header: 15  LSNs: 1  name: undo_row_delete
check_translog_description_table: info: record type: 20  class: 1  fixed: 0  header: 15  LSNs: 1  name: undo_row_update
check_translog_description_table: info: record type: 21  class: 1  fixed: 0  header: 10  LSNs: 1  name: undo_key_insert
check_translog_description_table: info: record type: 22  class: 1  fixed: 0  header: 15  LSNs: 1  name: undo_key_insert_with_root
check_translog_description_table: info: record type: 23  class: 1  fixed: 0  header: 10  LSNs: 1  name: undo_key_delete
check_translog_description_table: info: record type: 24  class: 1  fixed: 0  header: 15  LSNs: 1  name: undo_key_delete_with_root
check_translog_description_table: info: record type: 25  class: 1  fixed: 0  header: 0  LSNs: 0  name: prepare
check_translog_description_table: info: record type: 26  class: 1  fixed: 0  header: 7  LSNs: 1  name: prepare_with_undo_purge
check_translog_description_table: info: record type: 27  class: 3  fixed: 0  header: 0  LSNs: 0  name: commit
check_translog_description_table: info: record type: 28  class: 2  fixed: 5  header: 5  LSNs: 1  name: commit_with_undo_purge
check_translog_description_table: info: record type: 29  class: 1  fixed: 0  header: 0  LSNs: 0  name: checkpoint
check_translog_description_table: info: record type: 30  class: 1  fixed: 0  header: 3  LSNs: 0  name: redo_create_table
check_translog_description_table: info: record type: 31  class: 1  fixed: 0  header: 0  LSNs: 0  name: redo_rename_table
check_translog_description_table: info: record type: 32  class: 1  fixed: 0  header: 0  LSNs: 0  name: redo_drop_table
check_translog_description_table: info: record type: 33  class: 3  fixed: 2  header: 2  LSNs: 0  name: redo_delete_all
check_translog_description_table: info: record type: 34  class: 3  fixed: 18  header: 18  LSNs: 0  name: redo_repair_table
check_translog_description_table: info: record type: 35  class: 1  fixed: 0  header: 2  LSNs: 0  name: file_id
check_translog_description_table: info: record type: 36  class: 3  fixed: 6  header: 6  LSNs: 0  name: long_transaction_id
check_translog_description_table: info: record type: 37  class: 3  fixed: 2  header: 2  LSNs: 0  name: incomplete_log
check_translog_description_table: info: record type: 38  class: 3  fixed: 0  header: 0  LSNs: 0  name: incomplete_group
check_translog_description_table: info: record type: 39  class: 1  fixed: 0  header: 9  LSNs: 1  name: undo_bulk_insert
check_translog_description_table: info: record type: 40  class: 3  fixed: 12  header: 12  LSNs: 0  name: redo_create_bitmap
check_translog_description_table: info: record type: 41  class: 1  fixed: 0  header: 0  LSNs: 0  name: imported_table
check_translog_description_table: info: record type: 42  class: 1  fixed: 0  header: 0  LSNs: 0  name: info
translog_init_with_table: info: Overhead: 7  pc2: 8184  bc2: 1047552,  bc2/2: 523776
translog_start_buffer: info: last_lsn and prev_last_lsn set to 0  buffer: 0x7f79a8ffbfb8
get_current_logfile: info: max_file: 1  min_file: 1  open_files: 1
translog_start_buffer: info: file: #0 (-1)  init cursor #0: 0x7f79a8ffbfb8  chaser: 0  Size: 0 (0)
translog_buffer_init: info: last_lsn  and prev_last_lsn set to 0  buffer: 0x7f79a8ffbfb8
translog_init_with_table: info: translog_buffer buffer #0: 0x7f79a8ffbfb8
translog_buffer_init: info: last_lsn  and prev_last_lsn set to 0  buffer: 0x7f79a90fc140
translog_init_with_table: info: translog_buffer buffer #1: 0x7f79a8ffbfb9
translog_buffer_init: info: last_lsn  and prev_last_lsn set to 0  buffer: 0x7f79a91fc2c8
translog_init_with_table: info: translog_buffer buffer #2: 0x7f79a8ffbfba
translog_buffer_init: info: last_lsn  and prev_last_lsn set to 0  buffer: 0x7f79a92fc450
translog_init_with_table: info: translog_buffer buffer #3: 0x7f79a8ffbfbb
translog_buffer_init: info: last_lsn  and prev_last_lsn set to 0  buffer: 0x7f79a93fc5d8
translog_init_with_table: info: translog_buffer buffer #4: 0x7f79a8ffbfbc
translog_buffer_init: info: last_lsn  and prev_last_lsn set to 0  buffer: 0x7f79a94fc760
translog_init_with_table: info: translog_buffer buffer #5: 0x7f79a8ffbfbd
translog_buffer_init: info: last_lsn  and prev_last_lsn set to 0  buffer: 0x7f79a95fc8e8
translog_init_with_table: info: translog_buffer buffer #6: 0x7f79a8ffbfbe
translog_buffer_init: info: last_lsn  and prev_last_lsn set to 0  buffer: 0x7f79a96fca70
translog_init_with_table: info: translog_buffer buffer #7: 0x7f79a8ffbfbf
translog_init_with_table: info: log found...
get_logfile_by_number: info: File #1 is not opened
translog_filename_by_fileno: info: Path: '/var/lib/mysql/aria_log.00000001'  path: 0x7fff19542620
translog_get_last_page_addr: info: File size: 16384
translog_get_last_page_addr: info: Last page: 0x2000  ok: 1
translog_first_file: info: first file :1
translog_filename_by_fileno: info: Path: '/var/lib/mysql/aria_log.00000001'  path: 0x7fff19542630
open_logfile_by_number_no_cache: info: File: '/var/lib/mysql/aria_log.00000001'  handler: 16
translog_init_with_table: info: The log is really present
get_logfile_by_number: info: File 0x7f79a4c60670 File no: 1, File handler: 16
translog_get_last_page_addr: info: File size: 16384
translog_get_last_page_addr: info: Last page: 0x2000  ok: 1
translog_get_page: info: in_buffers: (0,0x0)
get_logfile_by_number: info: File 0x7f79a4c60670 File no: 1, File handler: 16
find_block: info: page to be read set for page 0x7f798b62b070 (0)
find_block: info: block: 0x7f798b62b070  fd: 16  pos: 1  block->status: 0  page_status: 1
pagecache_read: info: Block type: EMPTY current type PLAIN
pagecache_read: info: read is done
make_lock_and_pin: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/1  wrlocks: 0  rdlocks: 0  rdlocks_q: 0  pins: 0  type: PLAIN
get_rdlock: info: the block 0x7f798b62b070 files 16(16)  pages 1(1)
get_rdlock: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/1  wrlocks: 0  rdlocks: 0  rdlocks_q: 0  pins: 0  type: PLAIN
get_rdlock: info: RD lock set, block 0x7f798b62b070
make_lock_and_pin: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/1  wrlocks: 0  rdlocks: 1  rdlocks_q: 0  pins: 0  type: PLAIN
remove_reader: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/1  wrlocks: 0  rdlocks: 1  rdlocks_q: 0  pins: 0  type: PLAIN
make_lock_and_pin: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/0  wrlocks: 0  rdlocks: 1  rdlocks_q: 0  pins: 0  type: PLAIN
release_wrlock: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/0  wrlocks: 0  rdlocks: 1  rdlocks_q: 0  pins: 0  type: PLAIN
release_wrlock: info: RD lock decreased, block 0x7f798b62b070
release_wrlock: info: RD lock reset, block 0x7f798b62b070
release_wrlock: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/0  wrlocks: 0  rdlocks: 0  rdlocks_q: 0  pins: 0  type: PLAIN
make_lock_and_pin: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/0  wrlocks: 0  rdlocks: 0  rdlocks_q: 0  pins: 0  type: PLAIN
unreg_request: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/0  wrlocks: 0  rdlocks: 0  rdlocks_q: 0  pins: 0  type: PLAIN
link_block: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 0/0  wrlocks: 0  rdlocks: 0  rdlocks_q: 0  pins: 0  type: PLAIN
translog_get_page: info: Direct link is assigned to : 0x0 * 0x0
translog_init_with_table: info: Last valid page is in file: 1  offset: 8192 (0x2000)  Logs found: 1  was recovered: 0  flags match: 1
translog_get_page: info: in_buffers: (0,0x0)
get_logfile_by_number: info: File 0x7f79a4c60670 File no: 1, File handler: 16
reg_requests: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 0/1  wrlocks: 0  rdlocks: 0  rdlocks_q: 0  pins: 0  type: PLAIN
find_block: info: block: 0x7f798b62b070  fd: 16  pos: 1  block->status: 2  page_status: 0
pagecache_read: info: Block type: PLAIN current type PLAIN
make_lock_and_pin: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/1  wrlocks: 0  rdlocks: 0  rdlocks_q: 0  pins: 0  type: PLAIN
get_rdlock: info: the block 0x7f798b62b070 files 16(16)  pages 1(1)
get_rdlock: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/1  wrlocks: 0  rdlocks: 0  rdlocks_q: 0  pins: 0  type: PLAIN
get_rdlock: info: RD lock set, block 0x7f798b62b070
make_lock_and_pin: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/1  wrlocks: 0  rdlocks: 1  rdlocks_q: 0  pins: 0  type: PLAIN
remove_reader: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/1  wrlocks: 0  rdlocks: 1  rdlocks_q: 0  pins: 0  type: PLAIN
make_lock_and_pin: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/0  wrlocks: 0  rdlocks: 1  rdlocks_q: 0  pins: 0  type: PLAIN
release_wrlock: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/0  wrlocks: 0  rdlocks: 1  rdlocks_q: 0  pins: 0  type: PLAIN
release_wrlock: info: RD lock decreased, block 0x7f798b62b070
release_wrlock: info: RD lock reset, block 0x7f798b62b070
release_wrlock: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/0  wrlocks: 0  rdlocks: 0  rdlocks_q: 0  pins: 0  type: PLAIN
make_lock_and_pin: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/0  wrlocks: 0  rdlocks: 0  rdlocks_q: 0  pins: 0  type: PLAIN
unreg_request: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 1/0  wrlocks: 0  rdlocks: 0  rdlocks_q: 0  pins: 0  type: PLAIN
link_block: info: block: 0x7f798b62b070  fd: 16  page: 1  status: 0x2  hshL: 0x7f798b6358f0  requests: 0/0  wrlocks: 0  rdlocks: 0  rdlocks_q: 0  pins: 0  type: PLAIN
translog_get_page: info: Direct link is assigned to : 0x0 * 0x0
translog_start_buffer: info: last_lsn and prev_last_lsn set to 0  buffer: 0x7f79a8ffbfb8
get_current_logfile: info: max_file: 1  min_file: 1  open_files: 1
translog_start_buffer: info: file: #1 (16)  init cursor #0: 0x7f79a8ffbfb8  chaser: 0  Size: 0 (0)
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 8185
translog_init_with_table: info: chunk: offset: 7  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 8141
translog_init_with_table: info: chunk: offset: 51  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 8097
translog_init_with_table: info: chunk: offset: 95  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 8053
translog_init_with_table: info: chunk: offset: 139  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 8009
translog_init_with_table: info: chunk: offset: 183  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7965
translog_init_with_table: info: chunk: offset: 227  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7921
translog_init_with_table: info: chunk: offset: 271  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7877
translog_init_with_table: info: chunk: offset: 315  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7833
translog_init_with_table: info: chunk: offset: 359  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7789
translog_init_with_table: info: chunk: offset: 403  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7745
translog_init_with_table: info: chunk: offset: 447  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7701
translog_init_with_table: info: chunk: offset: 491  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7657
translog_init_with_table: info: chunk: offset: 535  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7613
translog_init_with_table: info: chunk: offset: 579  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7569
translog_init_with_table: info: chunk: offset: 623  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7525
translog_init_with_table: info: chunk: offset: 667  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7481
translog_init_with_table: info: chunk: offset: 711  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7437
translog_init_with_table: info: chunk: offset: 755  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7393
translog_init_with_table: info: chunk: offset: 799  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7349
translog_init_with_table: info: chunk: offset: 843  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7305
translog_init_with_table: info: chunk: offset: 887  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7261
translog_init_with_table: info: chunk: offset: 931  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7217
translog_init_with_table: info: chunk: offset: 975  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7173
translog_init_with_table: info: chunk: offset: 1019  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7129
translog_init_with_table: info: chunk: offset: 1063  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7085
translog_init_with_table: info: chunk: offset: 1107  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7041
translog_init_with_table: info: chunk: offset: 1151  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6997
translog_init_with_table: info: chunk: offset: 1195  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6953
translog_init_with_table: info: chunk: offset: 1239  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6909
translog_init_with_table: info: chunk: offset: 1283  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6865
translog_init_with_table: info: chunk: offset: 1327  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6821
translog_init_with_table: info: chunk: offset: 1371  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6777
translog_init_with_table: info: chunk: offset: 1415  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6733
translog_init_with_table: info: chunk: offset: 1459  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6689
translog_init_with_table: info: chunk: offset: 1503  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6645
translog_init_with_table: info: chunk: offset: 1547  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6601
translog_init_with_table: info: chunk: offset: 1591  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6557
translog_init_with_table: info: chunk: offset: 1635  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6513
translog_init_with_table: info: chunk: offset: 1679  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6469
translog_init_with_table: info: chunk: offset: 1723  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6425
translog_init_with_table: info: chunk: offset: 1767  length: 44
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6381
translog_init_with_table: info: chunk: offset: 1811  length: 44
translog_init_with_table: info: Move Page #0: 0x7f79a8ffbfb8  chaser: 0  Size: 1855 (1855)
translog_read_file_header: info: timestamp: 1401530147087793  aria ver: 10000 mysql ver: 100011  server id 73727 page size 8192 file number 1  max lsn: (0,0x0)
translog_init_with_table: info: Logs found: 1  was recovered: 0
translog_scanner_init: info: horizon: (1,0x273f)
translog_get_page: info: in_buffers: (1,0x2000)
translog_get_page: info: This is last unfinished page, last protected sector 0
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 8185
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 8141
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 8097
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 8053
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 8009
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7965
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7921
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7877
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7833
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7789
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7745
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7701
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7657
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7613
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7569
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7525
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7481
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7437
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7393
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7349
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7305
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7261
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7217
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7173
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7129
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7085
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 7041
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6997
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6953
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6909
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6865
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6821
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6777
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6733
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6689
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6645
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6601
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6557
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6513
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6469
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6425
translog_scanner_eol: info: Horizon is not reached
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6381
translog_scanner_eol: info: Horizon is fixed and reached
translog_free_link: info: Direct link: 0x0
translog_init_with_table: info: going to check the last found record (1,0x2713)
translog_get_page: info: in_buffers: (1,0x2000)
translog_get_page: info: This is last unfinished page, last protected sector 0
translog_read_record_header_from_buffer: info: page byte: 0x1d  offset: 1811
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_read_record_header_from_buffer: info: Type 29, Short TrID 0, LSN (1,0x2713)
translog_variable_length_header: info: rec len: 38  chunk len: 0  length: 0  bufflen: 0
translog_variable_length_header: info: 1 group
translog_variable_length_header: info: non_header_data_start_offset: 1817  len: 38  buffer: 0
translog_free_link: info: Direct link: 0x0
translog_scanner_init: info: horizon: (1,0x273f)
translog_get_page: info: in_buffers: (1,0x2000)
translog_get_page: info: This is last unfinished page, last protected sector 0
translog_read_record_header_from_buffer: info: page byte: 0x1d  offset: 1811
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_read_record_header_from_buffer: info: Type 29, Short TrID 0, LSN (1,0x2713)
translog_variable_length_header: info: rec len: 38  chunk len: 0  length: 0  bufflen: 0
translog_variable_length_header: info: 1 group
translog_variable_length_header: info: non_header_data_start_offset: 1817  len: 38  buffer: 0
translog_init_reader_data: info: read_header: 0  body_offset: 1817  chunk_size: 38  current_offset: 0
translog_read_record: info: Offset: 37  length: 1  Scanner: Cur: (1,0x2000)  Hrz: (1,0x273f)  Lst: (1,0x2000)  Offset: 1811(713)  fixed: 1
translog_read_record: info: enter body offset: 37  curr: 0  length: 1  page_end: 38
translog_free_link: info: Direct link: 0x0
translog_init_with_table: info: previous_flush_horizon: (1,0x273f)
maria_recovery_from_log: info: TRACE of the last Aria recovery from mysqld

ma_service_thread_control_init: info: init: OK
trnman_init: info: mysql_mutex_init LOCK_trn_list
maria_apply_log: info: Loading data from checkpoint record at LSN (1,0x2713)

translog_get_page: info: in_buffers: (1,0x2000)
translog_get_page: info: This is last unfinished page, last protected sector 0
translog_read_record_header_from_buffer: info: page byte: 0x1d  offset: 1811
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_read_record_header_from_buffer: info: Type 29, Short TrID 0, LSN (1,0x2713)
translog_variable_length_header: info: rec len: 38  chunk len: 0  length: 0  bufflen: 0
translog_variable_length_header: info: 1 group
translog_variable_length_header: info: non_header_data_start_offset: 1817  len: 38  buffer: 0
translog_free_link: info: Direct link: 0x0
translog_scanner_init: info: horizon: (1,0x273f)
translog_get_page: info: in_buffers: (1,0x2000)
translog_get_page: info: This is last unfinished page, last protected sector 0
translog_read_record_header_from_buffer: info: page byte: 0x1d  offset: 1811
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_read_record_header_from_buffer: info: Type 29, Short TrID 0, LSN (1,0x2713)
translog_variable_length_header: info: rec len: 38  chunk len: 0  length: 0  bufflen: 0
translog_variable_length_header: info: 1 group
translog_variable_length_header: info: non_header_data_start_offset: 1817  len: 38  buffer: 0
translog_init_reader_data: info: read_header: 0  body_offset: 1817  chunk_size: 38  current_offset: 0
translog_read_record: info: Offset: 0  length: 38  Scanner: Cur: (1,0x2000)  Hrz: (1,0x273f)  Lst: (1,0x2000)  Offset: 1811(713)  fixed: 1
translog_read_record: info: enter body offset: 0  curr: 0  length: 38  page_end: 38
translog_free_link: info: Direct link: 0x0
maria_apply_log: info: Checkpoint record has start_horizon at (1,0x2713)

maria_apply_log: info: 0 active transactions

maria_apply_log: info: Checkpoint record has min_rec_lsn of active transactions at (16777215,0xffffffff)

maria_apply_log: info: 0 committed transactions

maria_apply_log: info: 0 open tables

maria_apply_log: info: 0 dirty pages

translog_scanner_init: info: horizon: (1,0x273f)
translog_get_page: info: in_buffers: (1,0x2000)
translog_get_page: info: This is last unfinished page, last protected sector 0
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_free_link: info: Direct link: 0x0
maria_apply_log: info: Checkpoint record start_horizon now adjusted to LSN (1,0x2713)

maria_apply_log: info: Checkpoint has min_rec_lsn of dirty pages at LSN (16777215,0xffffffff)

maria_apply_log: info: checkpoint_start: (1,0x2713) start_address: (1,0x2713)
translog_get_page: info: in_buffers: (1,0x2000)
translog_get_page: info: This is last unfinished page, last protected sector 0
translog_read_record_header_from_buffer: info: page byte: 0x1d  offset: 1811
translog_is_LSN_chunk: info: byte: 1d  chunk type: 0  record type: 29
translog_read_record_header_from_buffer: info: Type 29, Short TrID 0, LSN (1,0x2713)
translog_variable_length_header: info: rec len: 38  chunk len: 0  length: 0  bufflen: 0
translog_variable_length_header: info: 1 group
translog_variable_length_header: info: non_header_data_start_offset: 1817  len: 38  buffer: 0
translog_free_link: info: Direct link: 0x0
translog_scanner_init: info: horizon: (1,0x273f)
translog_get_page: info: in_buffers: (1,0x2000)
translog_get_page: info: This is last unfinished page, last protected sector 0
run_redo_phase: info: Rec#1 LSN (1,0x2713) short_trid 0 checkpoint(num_type:29) len 38

run_redo_phase: info: CHECKPOINT found

translog_read_next_record_header: info: Scanner: Cur: (1,0x2000)  Hrz: (1,0x273f)  Lst: (1,0x2000)  Offset: 1811(713)  fixed: 1
translog_get_total_chunk_length: info: TRANSLOG_CHUNK_LSN
translog_get_total_chunk_length: info: rec len: 38  chunk len: 0  header len: 6
translog_get_total_chunk_length: info: page_rest 6381
translog_scanner_eol: info: Horizon is fixed and reached
translog_read_next_record_header: info: End of file from the scanner
run_redo_phase: info: EOF on the log

translog_free_link: info: Direct link: 0x0
trnman_destroy: info: mysql_mutex_destroy LOCK_trn_list
maria_apply_log: info: Maximum transaction long id seen: 0

maria_apply_log: info: Maximum transaction long id seen in control file: 0

trnman_init: info: mysql_mutex_init LOCK_trn_list
maria_recovery_from_log: info: SUCCESS

ma_service_thread_control_init: info: init: OK
141101 20:24:13 [Note] Plugin 'FEEDBACK' is disabled.
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79a4c62b30  into  0x7f79a8fa2900  (id: 19 -> 18)
add_to_locked_mutex: info: inserting 0x7f79a4c62bf0  into  0x7f79a8fa1f40  (id: 10 -> 3)
add_to_locked_mutex: info: inserting 0x7f79a4c62bf0  into  0x7f79a8fa2180  (id: 10 -> 4)
my_malloc: info: memory_used: 1048  size: 256
?func: info: Maria background checkpoint thread starts
my_service_thread_sleep: info: sleeping 29000000000 nano seconds
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 0
add_to_locked_mutex: info: inserting 0x7f79a4c62d70  into  0x7f79a4c6d1d8  (id: 2 -> 22)
my_malloc: info: memory_used: 1304  size: 1520
add_to_locked_mutex: info: inserting 0x7f79a4c62cb0  into  0x7f79a4c6d1d8  (id: 10 -> 22)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 1  n_length: 10  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 2824  size: -1520
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79a4c62e30  into  0x7f79a9809780  (id: 2 -> 23)
add_to_locked_mutex: info: inserting 0x7f79a4c62ef0  into  0x7f79a9809780  (id: 11 -> 23)
add_to_locked_mutex: info: inserting 0x7f79927e9370  into  0x7f79a9809780  (id: 24 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4e96b80  write_set: 0x7f79a4e96ba0
my_malloc: info: memory_used: 1304  size: 32
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 1
get_lock_data: info: sql_lock->table_count 1 sql_lock->lock_count 1
lock_external: info: count 1
mi_get_status: info: name: ./mysql/plugin.MYI  key_file: 2048  data_file: 272  rows: 8  concurrent_insert: 0
THD::decide_logging_format: info: Query: (null)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
init_read_record: info: using rr_sequential
init_io_cache: info: init_io_cache: cachesize = 16384
column_bitmaps_signal: info: read_set: 0x7f79a4c6d3a8  write_set: 0x7f79a4c6d3a8
plugin_load: info: init plugin record
plugin_load: info: init plugin record
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2180  (id: 12 -> 4)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a4c6d1d8  (id: 12 -> 22)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa1f40  (id: 12 -> 3)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa7060  (id: 12 -> 10)
141101 20:24:13 [ERROR] Function 'TokuDB' already exists
141101 20:24:13 [Warning] Couldn't load plugin named 'TokuDB' with soname 'ha_tokudb.so'.
plugin_load: info: init plugin record
141101 20:24:13 [ERROR] Function 'TokuDB_trx' already exists
141101 20:24:13 [Warning] Couldn't load plugin named 'TokuDB_trx' with soname 'ha_tokudb.so'.
plugin_load: info: init plugin record
141101 20:24:13 [ERROR] Function 'TokuDB_lock_waits' already exists
141101 20:24:13 [Warning] Couldn't load plugin named 'TokuDB_lock_waits' with soname 'ha_tokudb.so'.
plugin_load: info: init plugin record
141101 20:24:13 [ERROR] Function 'TokuDB_locks' already exists
141101 20:24:13 [Warning] Couldn't load plugin named 'TokuDB_locks' with soname 'ha_tokudb.so'.
plugin_load: info: init plugin record
141101 20:24:13 [ERROR] Function 'TokuDB_file_map' already exists
141101 20:24:13 [Warning] Couldn't load plugin named 'TokuDB_file_map' with soname 'ha_tokudb.so'.
plugin_load: info: init plugin record
141101 20:24:13 [ERROR] Function 'TokuDB_fractal_tree_info' already exists
141101 20:24:13 [Warning] Couldn't load plugin named 'TokuDB_fractal_tree_info' with soname 'ha_tokudb.so'.
plugin_load: info: init plugin record
141101 20:24:13 [ERROR] Function 'TokuDB_fractal_tree_block_map' already exists
141101 20:24:13 [Warning] Couldn't load plugin named 'TokuDB_fractal_tree_block_map' with soname 'ha_tokudb.so'.
_mi_writeinfo: info: operation: 0  tot_locks: 1
mi_restore_status: info: key_file: 2048  data_file: 272
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4e96a70
close_thread_table: info: Adding mdl lock 1 to 3
add_to_locked_mutex: info: inserting 0x7f79a4c62fb0  into  0x7f79a9809780  (id: 27 -> 23)
add_to_locked_mutex: info: inserting 0x7f79a4c62d70  into  0x7f79a8fc6600  (id: 2 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fc6600  (id: 12 -> 28)
add_to_locked_mutex: info: inserting 0x7f79a4c62cb0  into  0x7f79a8fc6600  (id: 10 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927e9370  into  0x7f79a8fc6600  (id: 22 -> 28)
tdc_release_share: info: moving share to unused list
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c164c0
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 1336  size: -256
plugin_thdvar_cleanup: info: unlocking 2 plugins
~THD(): info: freeing security context
my_free: info: memory_used: 1080  size: -32
my_free: info: memory_used: 1048  size: -1048
tokudb_init_func: info: tokudb_home: /var/lib/mysql/
tokudb_init_func: info: tokudb_env_flags: 0x0

tokudb_init_func: info: tokudb_data_dir: .

tokudb_init_func: info: tokudb_tmp_dir: .

tokudb_init_func: info: tokudb_cache_size: 1303738368

tokudb_init_func: info: tokudb_max_lock_memory: 162967296

ha_initialize_handlerton: oq-debug: oqgraph_init
my_chsize: info: old_size: 0
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927e9bb0  into  0x7f79a8fa2900  (id: 32 -> 18)
my_malloc: info: memory_used: 1048  size: 256
servers_reload: info: locking servers_cache
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 1
add_to_locked_mutex: info: inserting 0x7f79927e9d30  into  0x7f79a4c6d8d8  (id: 2 -> 33)
my_malloc: info: memory_used: 1304  size: 2704
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a4c6d8d8  (id: 12 -> 33)
add_to_locked_mutex: info: inserting 0x7f79927e9c70  into  0x7f79a4c6d8d8  (id: 10 -> 33)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 1  n_length: 66  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 4008  size: -2704
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927e9df0  into  0x7f79a9809780  (id: 34 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4e96b80  write_set: 0x7f79a4e96ba0
my_malloc: info: memory_used: 1304  size: 32
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 1
get_lock_data: info: sql_lock->table_count 1 sql_lock->lock_count 1
lock_external: info: count 1
mi_get_status: info: name: ./mysql/servers.MYI  key_file: 1024  data_file: 0  rows: 0  concurrent_insert: 0
THD::decide_logging_format: info: Query: (null)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
init_read_record: info: using rr_sequential
init_io_cache: info: init_io_cache: cachesize = 16384
mi_restore_status: info: key_file: 1024  data_file: 0
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4e96a70
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16700
servers_reload: info: unlocking servers_cache
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 1336  size: -256
plugin_thdvar_cleanup: info: unlocking 2 plugins
~THD(): info: freeing security context
my_free: info: memory_used: 1080  size: -32
my_free: info: memory_used: 1048  size: -1048
network_init: info: server started
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927e9bb0  into  0x7f79a8fa2900  (id: 38 -> 18)
my_malloc: info: memory_used: 1048  size: 256
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 1304  size: -256
~THD(): info: freeing security context
my_free: info: memory_used: 1048  size: -1048
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927e9bb0  into  0x7f79a8fa2900  (id: 40 -> 18)
my_malloc: info: memory_used: 1048  size: 256
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 2
add_to_locked_mutex: info: inserting 0x7f79927e9eb0  into  0x7f79a4c6edd8  (id: 2 -> 42)
my_malloc: info: memory_used: 1304  size: 2880
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a4c6edd8  (id: 12 -> 42)
add_to_locked_mutex: info: inserting 0x7f79927ea270  into  0x7f79a4c6edd8  (id: 10 -> 42)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 2  i_parts: 8  index: 1  n_length: 595  int_length: 28  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
add_to_locked_mutex: info: inserting 0x7f79927e9f70  into  0x7f79a4c6edd8  (id: 6 -> 42)
TABLE_SHARE::init_from_binary_frm_image: info: records: 44   seeks: 104   max links: 7   hitrate: 2.36
my_free: info: memory_used: 4184  size: -2880
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927ea3f0  into  0x7f79a9809780  (id: 43 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4e98780  write_set: 0x7f79a4e987a0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 3
add_to_locked_mutex: info: inserting 0x7f79927ea1b0  into  0x7f798b7408d8  (id: 2 -> 46)
my_malloc: info: memory_used: 1304  size: 2680
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b7408d8  (id: 12 -> 46)
add_to_locked_mutex: info: inserting 0x7f79927ea570  into  0x7f798b7408d8  (id: 10 -> 46)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 1  i_parts: 3  index: 2  n_length: 281  int_length: 6  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 3984  size: -2680
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927ea030  into  0x7f79a9809780  (id: 47 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4e99580  write_set: 0x7f79a4e995a0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 4
add_to_locked_mutex: info: inserting 0x7f79927ea0f0  into  0x7f798b740fd8  (id: 2 -> 50)
my_malloc: info: memory_used: 1304  size: 1904
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b740fd8  (id: 12 -> 50)
add_to_locked_mutex: info: inserting 0x7f79927ea330  into  0x7f798b740fd8  (id: 10 -> 50)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 1  i_parts: 3  index: 1  n_length: 265  int_length: 6  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 3208  size: -1904
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927ea630  into  0x7f79a9809780  (id: 51 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4e9b180  write_set: 0x7f79a4e9b1a0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 5
add_to_locked_mutex: info: inserting 0x7f79927ea4b0  into  0x7f798b7416d8  (id: 2 -> 53)
my_malloc: info: memory_used: 1304  size: 2840
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b7416d8  (id: 12 -> 53)
add_to_locked_mutex: info: inserting 0x7f79927ea7b0  into  0x7f798b7416d8  (id: 10 -> 53)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 2  n_length: 67  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 4144  size: -2840
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927ea6f0  into  0x7f79a9809780  (id: 54 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4e9cd80  write_set: 0x7f79a4e9cda0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 6
add_to_locked_mutex: info: inserting 0x7f79927ea870  into  0x7f798b741dd8  (id: 2 -> 56)
my_malloc: info: memory_used: 1304  size: 1664
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b741dd8  (id: 12 -> 56)
add_to_locked_mutex: info: inserting 0x7f79927ea930  into  0x7f798b741dd8  (id: 10 -> 56)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 1  i_parts: 3  index: 1  n_length: 30  int_length: 6  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 2968  size: -1664
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927eaab0  into  0x7f79a9809780  (id: 57 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4e9db80  write_set: 0x7f79a4e9dba0
my_malloc: info: memory_used: 1304  size: 64
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 5
get_lock_data: info: sql_lock->table_count 5 sql_lock->lock_count 5
lock_external: info: count 5
mi_get_status: info: name: ./mysql/roles_mapping.MYI  key_file: 4096  data_file: 0  rows: 0  concurrent_insert: 0
mi_get_status: info: name: ./mysql/proxies_priv.MYI  key_file: 10240  data_file: 2538  rows: 2  concurrent_insert: 0
mi_get_status: info: name: ./mysql/user.MYI  key_file: 4096  data_file: 524  rows: 4  concurrent_insert: 0
mi_get_status: info: name: ./mysql/db.MYI  key_file: 9216  data_file: 1264  rows: 1  concurrent_insert: 0
mi_get_status: info: name: ./mysql/host.MYI  key_file: 2048  data_file: 0  rows: 0  concurrent_insert: 0
THD::decide_logging_format: info: Query: (null)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
init_read_record: info: using rr_sequential
init_io_cache: info: init_io_cache: cachesize = 16384
column_bitmaps_signal: info: read_set: 0x7f798b7411a8  write_set: 0x7f798b7411a8
init_read_record: info: using rr_sequential
init_io_cache: info: init_io_cache: cachesize = 16384
column_bitmaps_signal: info: read_set: 0x7f79a4c6efa8  write_set: 0x7f79a4c6efa8
acl_load: info: user table fields: 44, password length: 41
add_to_locked_mutex: info: inserting 0x7f79a4c62bf0  into  0x7f798bba3640  (id: 10 -> 64)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798bba3640  (id: 12 -> 64)
add_to_locked_mutex: info: inserting 0x7f79927eac30  into  0x7f798bba3640  (id: 4 -> 64)
my_malloc: info: memory_used: 1368  size: 32
my_malloc: info: memory_used: 1400  size: 32
my_malloc: info: memory_used: 1432  size: 32
my_malloc: info: memory_used: 1464  size: 32
acl_load: info: Found user root
my_malloc: info: memory_used: 1496  size: 32
my_malloc: info: memory_used: 1528  size: 32
my_malloc: info: memory_used: 1560  size: 32
my_malloc: info: memory_used: 1592  size: 32
acl_load: info: Found user root
my_malloc: info: memory_used: 1624  size: 32
my_malloc: info: memory_used: 1656  size: 32
my_malloc: info: memory_used: 1688  size: 32
my_malloc: info: memory_used: 1720  size: 32
acl_load: info: Found user root
my_malloc: info: memory_used: 1752  size: 32
my_malloc: info: memory_used: 1784  size: 32
my_malloc: info: memory_used: 1816  size: 32
my_malloc: info: memory_used: 1848  size: 32
acl_load: info: Found user dubai
_mi_writeinfo: info: operation: 0  tot_locks: 1
init_read_record: info: using rr_sequential
init_io_cache: info: init_io_cache: cachesize = 16384
column_bitmaps_signal: info: read_set: 0x7f798b740aa8  write_set: 0x7f798b740aa8
init_read_record: info: using rr_sequential
init_io_cache: info: init_io_cache: cachesize = 16384
column_bitmaps_signal: info: read_set: 0x7f798b7418a8  write_set: 0x7f798b7418a8
init_read_record: info: using rr_sequential
init_io_cache: info: init_io_cache: cachesize = 16384
column_bitmaps_signal: info: read_set: 0x7f798b741fa8  write_set: 0x7f798b741fa8
mi_restore_status: info: key_file: 4096  data_file: 524
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 9216  data_file: 1264
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 2048  data_file: 0
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 10240  data_file: 2538
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 4096  data_file: 0
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4e9da70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16780
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16740
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16600
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c165c0
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16700
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 1880  size: -256
plugin_thdvar_cleanup: info: unlocking 13 plugins
~THD(): info: freeing security context
my_free: info: memory_used: 1624  size: -32
my_free: info: memory_used: 1592  size: -32
my_free: info: memory_used: 1560  size: -32
my_free: info: memory_used: 1528  size: -32
my_free: info: memory_used: 1496  size: -32
my_free: info: memory_used: 1464  size: -32
my_free: info: memory_used: 1432  size: -32
my_free: info: memory_used: 1400  size: -32
my_free: info: memory_used: 1368  size: -32
my_free: info: memory_used: 1336  size: -32
my_free: info: memory_used: 1304  size: -32
my_free: info: memory_used: 1272  size: -32
my_free: info: memory_used: 1240  size: -32
my_free: info: memory_used: 1208  size: -32
my_free: info: memory_used: 1176  size: -32
my_free: info: memory_used: 1144  size: -32
my_free: info: memory_used: 1112  size: -64
my_free: info: memory_used: 1048  size: -1048
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ea9f0  into  0x7f79a8fa2900  (id: 66 -> 18)
my_malloc: info: memory_used: 1048  size: 256
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 7
add_to_locked_mutex: info: inserting 0x7f79927e9bb0  into  0x7f798b7424d8  (id: 2 -> 68)
my_malloc: info: memory_used: 1304  size: 976
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b7424d8  (id: 12 -> 68)
add_to_locked_mutex: info: inserting 0x7f79927eae70  into  0x7f798b7424d8  (id: 10 -> 68)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 1  n_length: 29  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 2280  size: -976
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927eb530  into  0x7f79a9809780  (id: 69 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4e9e980  write_set: 0x7f79a4e9e9a0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 8
add_to_locked_mutex: info: inserting 0x7f79927eb3b0  into  0x7f798b742bd8  (id: 2 -> 71)
my_malloc: info: memory_used: 1304  size: 1152
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b742bd8  (id: 12 -> 71)
add_to_locked_mutex: info: inserting 0x7f79927eb2f0  into  0x7f798b742bd8  (id: 10 -> 71)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 1  n_length: 20  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 2456  size: -1152
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927eb470  into  0x7f79a9809780  (id: 72 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4ea0580  write_set: 0x7f79a4ea05a0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 9
add_to_locked_mutex: info: inserting 0x7f79927eb830  into  0x7f798b7438d8  (id: 2 -> 74)
my_malloc: info: memory_used: 1304  size: 976
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b7438d8  (id: 12 -> 74)
add_to_locked_mutex: info: inserting 0x7f79927eb6b0  into  0x7f798b7438d8  (id: 10 -> 74)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 1  i_parts: 3  index: 1  n_length: 32  int_length: 6  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 2280  size: -976
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927eb5f0  into  0x7f79a9809780  (id: 75 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4ea1380  write_set: 0x7f79a4ea13a0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 10
add_to_locked_mutex: info: inserting 0x7f79927eb770  into  0x7f798b743fd8  (id: 2 -> 77)
my_malloc: info: memory_used: 1304  size: 1080
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b743fd8  (id: 12 -> 77)
add_to_locked_mutex: info: inserting 0x7f79927ebb30  into  0x7f798b743fd8  (id: 10 -> 77)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 1  n_length: 61  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 2384  size: -1080
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927ebbf0  into  0x7f79a9809780  (id: 78 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4ea2f80  write_set: 0x7f79a4ea2fa0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 11
add_to_locked_mutex: info: inserting 0x7f79927ebd70  into  0x7f798b7446d8  (id: 2 -> 80)
my_malloc: info: memory_used: 1304  size: 1016
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b7446d8  (id: 12 -> 80)
add_to_locked_mutex: info: inserting 0x7f79927eb8f0  into  0x7f798b7446d8  (id: 10 -> 80)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 1  n_length: 50  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 2320  size: -1016
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927ebcb0  into  0x7f79a9809780  (id: 81 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4ea4b80  write_set: 0x7f79a4ea4ba0
my_malloc: info: memory_used: 1304  size: 64
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 5
get_lock_data: info: sql_lock->table_count 5 sql_lock->lock_count 5
lock_external: info: count 5
mi_get_status: info: name: ./mysql/time_zone_leap_second.MYI  key_file: 1024  data_file: 0  rows: 0  concurrent_insert: 0
mi_get_status: info: name: ./mysql/time_zone_name.MYI  key_file: 1024  data_file: 0  rows: 0  concurrent_insert: 0
mi_get_status: info: name: ./mysql/time_zone.MYI  key_file: 1024  data_file: 0  rows: 0  concurrent_insert: 0
mi_get_status: info: name: ./mysql/time_zone_transition_type.MYI  key_file: 1024  data_file: 0  rows: 0  concurrent_insert: 0
mi_get_status: info: name: ./mysql/time_zone_transition.MYI  key_file: 1024  data_file: 0  rows: 0  concurrent_insert: 0
THD::decide_logging_format: info: Query: (null)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
column_bitmaps_signal: info: read_set: 0x7f798b7426a8  write_set: 0x7f798b7426a8
column_bitmaps_signal: info: read_set: 0x7f798b742da8  write_set: 0x7f798b742da8
column_bitmaps_signal: info: read_set: 0x7f798b743aa8  write_set: 0x7f798b743aa8
column_bitmaps_signal: info: read_set: 0x7f798b7441a8  write_set: 0x7f798b7441a8
column_bitmaps_signal: info: read_set: 0x7f798b7448a8  write_set: 0x7f798b7448a8
column_bitmaps_signal: info: read_set: 0x7f798b7426a8  write_set: 0x7f798b7426a8
mi_restore_status: info: key_file: 1024  data_file: 0
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 1024  data_file: 0
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 1024  data_file: 0
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 1024  data_file: 0
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 1024  data_file: 0
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4ea4a70
close_thread_table: info: Adding mdl lock 1 to 3
add_to_locked_mutex: info: inserting 0x7f79927ebd70  into  0x7f79a8fc6600  (id: 2 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927eb8f0  into  0x7f79a8fc6600  (id: 10 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fc6600  (id: 12 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927ebcb0  into  0x7f79a8fc6600  (id: 80 -> 28)
tdc_release_share: info: moving share to unused list
close_thread_table: info: Adding mdl lock 1 to 3
add_to_locked_mutex: info: inserting 0x7f79927eb770  into  0x7f79a8fc6600  (id: 2 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927ebb30  into  0x7f79a8fc6600  (id: 10 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fc6600  (id: 12 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927ebbf0  into  0x7f79a8fc6600  (id: 77 -> 28)
tdc_release_share: info: moving share to unused list
close_thread_table: info: Adding mdl lock 1 to 3
add_to_locked_mutex: info: inserting 0x7f79927eb830  into  0x7f79a8fc6600  (id: 2 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927eb6b0  into  0x7f79a8fc6600  (id: 10 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fc6600  (id: 12 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927eb5f0  into  0x7f79a8fc6600  (id: 74 -> 28)
tdc_release_share: info: moving share to unused list
close_thread_table: info: Adding mdl lock 1 to 3
add_to_locked_mutex: info: inserting 0x7f79927eb3b0  into  0x7f79a8fc6600  (id: 2 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927eb2f0  into  0x7f79a8fc6600  (id: 10 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fc6600  (id: 12 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927eb470  into  0x7f79a8fc6600  (id: 71 -> 28)
tdc_release_share: info: moving share to unused list
close_thread_table: info: Adding mdl lock 1 to 3
add_to_locked_mutex: info: inserting 0x7f79927e9bb0  into  0x7f79a8fc6600  (id: 2 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927eae70  into  0x7f79a8fc6600  (id: 10 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fc6600  (id: 12 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927eb530  into  0x7f79a8fc6600  (id: 68 -> 28)
tdc_release_share: info: moving share to unused list
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16780
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16740
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16600
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c165c0
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16700
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 1368  size: -256
plugin_thdvar_cleanup: info: unlocking 10 plugins
~THD(): info: freeing security context
my_free: info: memory_used: 1112  size: -64
my_free: info: memory_used: 1048  size: -1048
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ebfb0  into  0x7f79a8fa2900  (id: 89 -> 18)
my_malloc: info: memory_used: 1048  size: 256
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 12
add_to_locked_mutex: info: inserting 0x7f79927ea9f0  into  0x7f798b744dd8  (id: 2 -> 91)
my_malloc: info: memory_used: 1304  size: 2960
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b744dd8  (id: 12 -> 91)
add_to_locked_mutex: info: inserting 0x7f79927eb170  into  0x7f798b744dd8  (id: 10 -> 91)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 2  i_parts: 19  index: 2  n_length: 67  int_length: 135  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 4264  size: -2960
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927eb9b0  into  0x7f79a9809780  (id: 92 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4e9e980  write_set: 0x7f79a4e9e9a0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 13
add_to_locked_mutex: info: inserting 0x7f79927eba70  into  0x7f798b7454d8  (id: 2 -> 94)
my_malloc: info: memory_used: 1304  size: 2112
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b7454d8  (id: 12 -> 94)
add_to_locked_mutex: info: inserting 0x7f79927ebef0  into  0x7f798b7454d8  (id: 10 -> 94)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 1  i_parts: 5  index: 1  n_length: 60  int_length: 34  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 3416  size: -2112
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927ebe30  into  0x7f79a9809780  (id: 95 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4e9f780  write_set: 0x7f79a4e9f7a0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 14
add_to_locked_mutex: info: inserting 0x7f79927ec370  into  0x7f798b745bd8  (id: 2 -> 97)
my_malloc: info: memory_used: 1304  size: 2880
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b745bd8  (id: 12 -> 97)
add_to_locked_mutex: info: inserting 0x7f79927ec1f0  into  0x7f798b745bd8  (id: 10 -> 97)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 2  i_parts: 7  index: 2  n_length: 69  int_length: 51  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 4184  size: -2880
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927ec130  into  0x7f79a9809780  (id: 98 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4ea0580  write_set: 0x7f79a4ea05a0
my_malloc: info: memory_used: 1304  size: 48
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 3
get_lock_data: info: sql_lock->table_count 3 sql_lock->lock_count 3
lock_external: info: count 3
mi_get_status: info: name: ./mysql/tables_priv.MYI  key_file: 4096  data_file: 0  rows: 0  concurrent_insert: 0
mi_get_status: info: name: ./mysql/columns_priv.MYI  key_file: 4096  data_file: 0  rows: 0  concurrent_insert: 0
mi_get_status: info: name: ./mysql/procs_priv.MYI  key_file: 4096  data_file: 0  rows: 0  concurrent_insert: 0
THD::decide_logging_format: info: Query: (null)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
column_bitmaps_signal: info: read_set: 0x7f798b744fa8  write_set: 0x7f798b744fa8
column_bitmaps_signal: info: read_set: 0x7f798b7456a8  write_set: 0x7f798b7456a8
column_bitmaps_signal: info: read_set: 0x7f798b745da8  write_set: 0x7f798b745da8
mi_restore_status: info: key_file: 4096  data_file: 0
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 4096  data_file: 0
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 4096  data_file: 0
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4ea0470
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16600
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c165c0
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16700
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 1352  size: -256
plugin_thdvar_cleanup: info: unlocking 7 plugins
~THD(): info: freeing security context
my_free: info: memory_used: 1096  size: -48
my_free: info: memory_used: 1048  size: -1048
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ec2b0  into  0x7f79a8fa2900  (id: 104 -> 18)
my_malloc: info: memory_used: 1048  size: 256
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 15
add_to_locked_mutex: info: inserting 0x7f79927ebfb0  into  0x7f798b7462d8  (id: 2 -> 105)
my_malloc: info: memory_used: 1304  size: 1584
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b7462d8  (id: 12 -> 105)
add_to_locked_mutex: info: inserting 0x7f79927ec670  into  0x7f798b7462d8  (id: 10 -> 105)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 1  i_parts: 3  index: 1  n_length: 19  int_length: 21  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 2888  size: -1584
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927edb70  into  0x7f79a9809780  (id: 106 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4ea1380  write_set: 0x7f79a4ea13a0
my_malloc: info: memory_used: 1304  size: 32
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 1
get_lock_data: info: sql_lock->table_count 1 sql_lock->lock_count 1
lock_external: info: count 1
mi_get_status: info: name: ./mysql/func.MYI  key_file: 1024  data_file: 0  rows: 0  concurrent_insert: 0
THD::decide_logging_format: info: Query: (null)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
init_read_record: info: using rr_sequential
init_io_cache: info: init_io_cache: cachesize = 16384
column_bitmaps_signal: info: read_set: 0x7f798b7464a8  write_set: 0x7f798b7464a8
mi_restore_status: info: key_file: 1024  data_file: 0
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4ea1270
close_thread_table: info: Adding mdl lock 1 to 3
add_to_locked_mutex: info: inserting 0x7f79927ebfb0  into  0x7f79a8fc6600  (id: 2 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927ec670  into  0x7f79a8fc6600  (id: 10 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fc6600  (id: 12 -> 28)
add_to_locked_mutex: info: inserting 0x7f79927edb70  into  0x7f79a8fc6600  (id: 105 -> 28)
tdc_release_share: info: moving share to unused list
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16700
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 1336  size: -256
plugin_thdvar_cleanup: info: unlocking 2 plugins
~THD(): info: freeing security context
my_free: info: memory_used: 1080  size: -32
my_free: info: memory_used: 1048  size: -1048
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ec2b0  into  0x7f79a8fa2900  (id: 110 -> 18)
my_malloc: info: memory_used: 1048  size: 256
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 1304  size: -256
~THD(): info: freeing security context
my_free: info: memory_used: 1048  size: -1048
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ec2b0  into  0x7f79a8fa2900  (id: 113 -> 18)
my_malloc: info: memory_used: 1048  size: 256
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4e99580  write_set: 0x7f79a4e995a0
my_malloc: info: memory_used: 1304  size: 32
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 1
get_lock_data: info: sql_lock->table_count 1 sql_lock->lock_count 1
lock_external: info: count 1
mi_get_status: info: name: ./mysql/db.MYI  key_file: 9216  data_file: 1264  rows: 1  concurrent_insert: 0
THD::decide_logging_format: info: Query: (null)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
table_check_intact: info: table: db  expected_count: 22
mi_restore_status: info: key_file: 9216  data_file: 1264
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4e99470
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16700
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4e98780  write_set: 0x7f79a4e987a0
my_malloc: info: memory_used: 1336  size: 32
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 1
get_lock_data: info: sql_lock->table_count 1 sql_lock->lock_count 1
lock_external: info: count 1
mi_get_status: info: name: ./mysql/user.MYI  key_file: 4096  data_file: 524  rows: 4  concurrent_insert: 0
THD::decide_logging_format: info: Query: (null)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
mi_restore_status: info: key_file: 4096  data_file: 524
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4e98670
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16700
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 16
add_to_locked_mutex: info: inserting 0x7f79927edc30  into  0x7f798b7469d8  (id: 2 -> 114)
my_malloc: info: memory_used: 1368  size: 3696
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b7469d8  (id: 12 -> 114)
add_to_locked_mutex: info: inserting 0x7f79927edcf0  into  0x7f798b7469d8  (id: 10 -> 114)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 4  i_parts: 61  index: 1  n_length: 231  int_length: 763  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 5064  size: -3696
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f79927eddb0  into  0x7f79a9809780  (id: 115 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4ea1380  write_set: 0x7f79a4ea13a0
my_malloc: info: memory_used: 1368  size: 32
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 1
get_lock_data: info: sql_lock->table_count 1 sql_lock->lock_count 1
lock_external: info: count 1
mi_get_status: info: name: ./mysql/event.MYI  key_file: 2048  data_file: 0  rows: 0  concurrent_insert: 0
THD::decide_logging_format: info: Query: (null)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
table_check_intact: info: table: event  expected_count: 22
mi_restore_status: info: key_file: 2048  data_file: 0
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4ea1270
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16700
add_to_locked_mutex: info: inserting 0x7f79a4c62bf0  into  0x7f79a4cf2200  (id: 10 -> 118)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a4cf2200  (id: 12 -> 118)
add_to_locked_mutex: info: inserting 0x7f79927ede70  into  0x7f79a4cf2200  (id: 4 -> 118)
MDL_context::acquire_lock: info: Got lock without waiting
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4ea1380  write_set: 0x7f79a4ea13a0
my_malloc: info: memory_used: 1400  size: 32
lock_tables_check: info: Adding mdl lock 4 to 4
get_lock_data: info: count 1
get_lock_data: info: sql_lock->table_count 1 sql_lock->lock_count 1
lock_external: info: count 1
mi_get_status: info: name: ./mysql/event.MYI  key_file: 2048  data_file: 0  rows: 0  concurrent_insert: 0
THD::decide_logging_format: info: Query: (null)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
column_bitmaps_signal: info: read_set: 0x7f798b746ba8  write_set: 0x7f798b746ba8
table_check_intact: info: table: event  expected_count: 22
init_read_record: info: using rr_sequential
_mi_writeinfo: info: operation: 0  tot_locks: 1
141101 20:24:13 [Note] Event Scheduler: Loaded 0 events
add_to_locked_mutex: info: inserting 0x7f79927edff0  into  0x7f79a9809780  (id: 117 -> 23)
add_to_locked_mutex: info: inserting 0x7f79927edff0  into  0x7f79a4ea2550  (id: 117 -> 115)
mi_update_status: info: updating status:  key_file: 2048  data_file: 0  rows: 0
mi_update_status: info: invalidator... './mysql/event' (status update)
add_to_locked_mutex: info: inserting 0x7f79927ee0b0  into  0x7f79a9809780  (id: 27 -> 23)
add_to_locked_mutex: info: inserting 0x7f79927ee0b0  into  0x7f79a4ea2550  (id: 27 -> 115)
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4ea1270
close_thread_table: info: Adding mdl lock 1 to 4
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16700
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c165c0
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 1432  size: -256
plugin_thdvar_cleanup: info: unlocking 2 plugins
~THD(): info: freeing security context
my_free: info: memory_used: 1176  size: -32
my_free: info: memory_used: 1144  size: -32
my_free: info: memory_used: 1112  size: -32
my_free: info: memory_used: 1080  size: -32
my_free: info: memory_used: 1048  size: -1048
141101 20:24:13 [Note] WSREP: Read nil XID from storage engines, skipping position init
141101 20:24:13 [Note] WSREP: wsrep_load(): loading provider library 'none'
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee6b0  into  0x7f79a8fa2900  (id: 123 -> 18)
my_malloc: info: memory_used: 1048  size: 256
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 17
add_to_locked_mutex: info: inserting 0x7f79927ee770  into  0x7f798b748cd8  (id: 2 -> 125)
my_malloc: info: memory_used: 1304  size: 1024
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b748cd8  (id: 12 -> 125)
add_to_locked_mutex: info: inserting 0x7f79927ee830  into  0x7f798b748cd8  (id: 10 -> 125)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 1  n_length: 36  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 2328  size: -1024
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
add_to_locked_mutex: info: inserting 0x7f79927ee8f0  into  0x7f79a8fd3b20  (id: 11 -> 126)
add_identifier: info: conv 'mysql' -> 'mysql'
add_identifier: info: conv 'gtid_slave_pos' -> 'gtid_slave_pos'
column_bitmaps_signal: info: read_set: 0x7f79a4ea9180  write_set: 0x7f79a4ea91a0
my_malloc: info: memory_used: 1304  size: 32
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 1
get_lock_data: info: sql_lock->table_count 1 sql_lock->lock_count 1
lock_external: info: count 1
THD::decide_logging_format: info: Query: (null)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
table_check_intact: info: table: gtid_slave_pos  expected_count: 4
ha_commit_trans: info: thd: 0x7f798b9a1070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x7f798b9a3240  is_real_trans: 1
ha_commit_trans: info: is_real_trans: 1  rw_trans:  0  rw_ha_count: 0
ha_commit_trans: info: thd: 0x7f798b9a1070  option_bits: 2147748608  all: 1
ha_commit_trans: info: all: 1  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
close_thread_tables: info: thd->open_tables: 0x7f79a4ea9070
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f79a4c16a00
add_to_locked_mutex: info: inserting 0x7f79927eecb0  into  0x7f79a8fa2900  (id: 128 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927eecb0  into  0x7f79a8fa2900  (id: 30 -> 18)
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
add_to_locked_mutex: info: inserting 0x7f79927eea70  into  0x7f79a8fa2900  (id: 31 -> 18)
my_free: info: memory_used: 1336  size: -256
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927eee30  into  0x7f79a8fa2900  (id: 10 -> 18)
plugin_thdvar_cleanup: info: unlocking 2 plugins
~THD(): info: freeing security context
my_free: info: memory_used: 1080  size: -32
my_free: info: memory_used: 1048  size: -1048
add_to_locked_mutex: info: inserting 0x7f79927edf30  into  0x7f79a8fa1f40  (id: 2 -> 3)
init_io_cache: info: init_io_cache: cachesize = 8192
add_to_locked_mutex: info: inserting 0x7f79927ec2b0  into  0x7f79a8fa1f40  (id: 129 -> 3)
my_realpath: info: executing realpath
141101 20:24:13 [Note] /usr/libexec/mysqld: ready for connections.
Version: '10.1.1-MariaDB-wsrep-debug'  socket: '/var/run/mysql/mysql.sock'  port: 0  MariaDB Server, wsrep_25.10.r4123
my_service_thread_sleep: info: sleeping 30000000000 nano seconds
my_service_thread_sleep: info: sleeping 30000000000 nano seconds
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee170  into  0x7f79a8fa2900  (id: 131 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 2
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 2
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 541042317
server_mpvio_read_packet: info: client_character_set: 33
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=root, auth_string=*E98032BFA878C65D5CC067D2E45437DFC1AD574A, authenticated as=rootplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=root host=localhost ip=(null) authenticated_as=root
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 541042317  packet_length: 16777216  Host: 'localhost'  Login user: 'root' Priv_user: 'root'  Using password: yes Access: 536870911  db: 'skynet'
mysql_change_db: info: Use database: skynet
init_io_cache: info: init_io_cache: cachesize = 8192
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f798b7f8070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f798bc88140
my_free: info: memory_used: 30560  size: -1048
my_malloc: info: memory_used: 29512  size: 5680
my_malloc: info: memory_used: 35192  size: 984
my_malloc: info: memory_used: 36176  size: 984
my_malloc: info: memory_used: 37160  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_malloc: info: memory_used: 38280  size: 10440
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 48720  size: 8
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 48728  size: 864
my_free: info: memory_used: 49592  size: -8
my_malloc: info: memory_used: 49584  size: 736
get_lock_data: info: count 0
get_lock_data: info: sql_lock->table_count 0 sql_lock->lock_count 0
THD::decide_logging_format: info: Query: show databases
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
my_malloc: info: memory_used: 50320  size: 16304
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798be33088

Info about JOIN
SCHEMATA          type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::save_explain_data_intern: info: Select 0x7f798b7fc480, type (null), message NULL
my_malloc: info: memory_used: 66624  size: 104
my_malloc: info: memory_used: 66728  size: 8192
my_malloc: info: memory_used: 74920  size: 32792
find_files: info: found: 5 files
my_free: info: memory_used: 107712  size: -8192
my_free: info: memory_used: 99520  size: -32792
my_free: info: memory_used: 66728  size: -104
my_malloc: info: memory_used: 66624  size: 128464
init_io_cache: info: init_io_cache: cachesize = 8192
init_io_cache: info: init_io_cache: cachesize = 8192
JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 5 records output
handle_select: info: res: 0  report_error: 0
my_free: info: memory_used: 195088  size: -128464
my_free: info: memory_used: 66624  size: -864
my_free: info: memory_used: 65760  size: -736
my_free: info: memory_used: 65024  size: -10440
my_free: info: memory_used: 54584  size: -1120
my_free: info: memory_used: 53464  size: -5680
my_free: info: memory_used: 47784  size: -984
my_free: info: memory_used: 46800  size: -984
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 45816  size: -40
my_free: info: memory_used: 45776  size: -72
my_free: info: memory_used: 45704  size: -32
my_free: info: memory_used: 45672  size: -264
my_free: info: memory_used: 45408  size: -32
my_free: info: memory_used: 45376  size: -48
my_free: info: memory_used: 45328  size: -40
my_free: info: memory_used: 45288  size: -16304
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f798bc884b0
my_malloc: info: memory_used: 28984  size: 5544
my_malloc: info: memory_used: 34528  size: 984
my_malloc: info: memory_used: 35512  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_malloc: info: memory_used: 36632  size: 6480
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 43112  size: 8
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 43120  size: 864
my_free: info: memory_used: 43984  size: -8
my_malloc: info: memory_used: 43976  size: 736
get_lock_data: info: count 0
get_lock_data: info: sql_lock->table_count 0 sql_lock->lock_count 0
THD::decide_logging_format: info: Query: show tables
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
my_malloc: info: memory_used: 44712  size: 8152
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bc16298

Info about JOIN
TABLE_NAMES       type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

get_all_tables: info: db_name='skynet', table_name='(null)'
JOIN::save_explain_data_intern: info: Select 0x7f798b7fc480, type (null), message NULL
my_malloc: info: memory_used: 52864  size: 104
my_malloc: info: memory_used: 52968  size: 8192
my_malloc: info: memory_used: 61160  size: 32792
find_files: info: found: 10 files
my_free: info: memory_used: 93952  size: -8192
my_free: info: memory_used: 85760  size: -32792
my_free: info: memory_used: 52968  size: -104
my_malloc: info: memory_used: 52864  size: 129120
JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 10 records output
handle_select: info: res: 0  report_error: 0
my_free: info: memory_used: 181984  size: -129120
my_free: info: memory_used: 52864  size: -864
my_free: info: memory_used: 52000  size: -736
my_free: info: memory_used: 51264  size: -6480
my_free: info: memory_used: 44784  size: -1120
my_free: info: memory_used: 43664  size: -5544
my_free: info: memory_used: 38120  size: -984
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 4 (Field List)
dispatch_command: info: command: 4
open_temporary_table: info: skip_temporary is set or no temporary tables
dispatch_command: info: derived: 0  view: 0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 18
add_to_locked_mutex: info: inserting 0x7f798bc6ba70  into  0x7f798b749ad8  (id: 2 -> 134)
my_malloc: info: memory_used: 28984  size: 3528
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b749ad8  (id: 12 -> 134)
add_to_locked_mutex: info: inserting 0x7f798bc6bb30  into  0x7f798b749ad8  (id: 10 -> 134)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 3  n_length: 31  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 32512  size: -3528
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
add_identifier: info: conv 'skynet' -> 'skynet'
add_identifier: info: conv 'airports' -> 'airports'
column_bitmaps_signal: info: read_set: 0x7f79a4ea9f80  write_set: 0x7f79a4ea9fa0
column_bitmaps_signal: info: read_set: 0x7f798b749ca8  write_set: 0x7f798b749ca8
close_thread_tables: info: thd->open_tables: 0x7f79a4ea9e70
close_thread_table: info: Adding mdl lock 1 to 2
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754a00
net_send_eof: info: EOF sent, so no more error sending allowed
do_command: info: Command on socket = 4 (Field List)
dispatch_command: info: command: 4
open_temporary_table: info: skip_temporary is set or no temporary tables
dispatch_command: info: derived: 0  view: 0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 19
add_to_locked_mutex: info: inserting 0x7f798bc6bfb0  into  0x7f798b74b6d8  (id: 2 -> 135)
my_malloc: info: memory_used: 28984  size: 2592
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b74b6d8  (id: 12 -> 135)
add_to_locked_mutex: info: inserting 0x7f798bc6bbf0  into  0x7f798b74b6d8  (id: 10 -> 135)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 4  n_length: 51  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 31576  size: -2592
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
add_to_locked_mutex: info: inserting 0x7f798bc6bef0  into  0x7f79a9809780  (id: 136 -> 23)
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
column_bitmaps_signal: info: read_set: 0x7f798b74b8a8  write_set: 0x7f798b74b8a8
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 2
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754a00
net_send_eof: info: EOF sent, so no more error sending allowed
do_command: info: Command on socket = 4 (Field List)
dispatch_command: info: command: 4
open_temporary_table: info: skip_temporary is set or no temporary tables
dispatch_command: info: derived: 0  view: 0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 20
add_to_locked_mutex: info: inserting 0x7f798bc6bcb0  into  0x7f798b74bdd8  (id: 2 -> 138)
my_malloc: info: memory_used: 28984  size: 3640
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b74bdd8  (id: 12 -> 138)
add_to_locked_mutex: info: inserting 0x7f798bc83130  into  0x7f798b74bdd8  (id: 10 -> 138)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 2  i_parts: 9  index: 4  n_length: 146  int_length: 32  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 32624  size: -3640
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
add_identifier: info: conv 'skynet' -> 'skynet'
add_identifier: info: conv 'flight_bookmarks' -> 'flight_bookmarks'
column_bitmaps_signal: info: read_set: 0x7f79a4eae580  write_set: 0x7f79a4eae5a0
column_bitmaps_signal: info: read_set: 0x7f798b74bfa8  write_set: 0x7f798b74bfa8
close_thread_tables: info: thd->open_tables: 0x7f79a4eae470
close_thread_table: info: Adding mdl lock 1 to 2
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754a00
net_send_eof: info: EOF sent, so no more error sending allowed
do_command: info: Command on socket = 4 (Field List)
dispatch_command: info: command: 4
open_temporary_table: info: skip_temporary is set or no temporary tables
dispatch_command: info: derived: 0  view: 0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 21
add_to_locked_mutex: info: inserting 0x7f798bc834f0  into  0x7f798b74d2d8  (id: 2 -> 140)
my_malloc: info: memory_used: 28984  size: 1000
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b74d2d8  (id: 12 -> 140)
add_to_locked_mutex: info: inserting 0x7f798bc831f0  into  0x7f798b74d2d8  (id: 10 -> 140)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 1  n_length: 32  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 29984  size: -1000
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
add_identifier: info: conv 'skynet' -> 'skynet'
add_identifier: info: conv 'flight_cache_status' -> 'flight_cache_status'
column_bitmaps_signal: info: read_set: 0x7f79a4eaf380  write_set: 0x7f79a4eaf3a0
column_bitmaps_signal: info: read_set: 0x7f798b74d4a8  write_set: 0x7f798b74d4a8
close_thread_tables: info: thd->open_tables: 0x7f79a4eaf270
close_thread_table: info: Adding mdl lock 1 to 2
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754a00
net_send_eof: info: EOF sent, so no more error sending allowed
do_command: info: Command on socket = 4 (Field List)
dispatch_command: info: command: 4
open_temporary_table: info: skip_temporary is set or no temporary tables
dispatch_command: info: derived: 0  view: 0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 22
add_to_locked_mutex: info: inserting 0x7f798bc83430  into  0x7f798b74e0d8  (id: 2 -> 141)
my_malloc: info: memory_used: 28984  size: 1240
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b74e0d8  (id: 12 -> 141)
add_to_locked_mutex: info: inserting 0x7f798bc83370  into  0x7f798b74e0d8  (id: 10 -> 141)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 1  i_parts: 3  index: 1  n_length: 89  int_length: 6  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
report_unknown_option: info: parsed => exiting
my_free: info: memory_used: 30224  size: -1240
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
open: info: share->use_count 1
close_thread_tables: info: thd->open_tables: 0x7f79a4eb0070
close_thread_table: info: Adding mdl lock 1 to 2
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754a00
net_send_eof: info: EOF sent, so no more error sending allowed
do_command: info: Command on socket = 4 (Field List)
dispatch_command: info: command: 4
open_temporary_table: info: skip_temporary is set or no temporary tables
dispatch_command: info: derived: 0  view: 0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 23
add_to_locked_mutex: info: inserting 0x7f798bc83a30  into  0x7f798b74f5d8  (id: 2 -> 142)
my_malloc: info: memory_used: 28984  size: 4200
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b74f5d8  (id: 12 -> 142)
add_to_locked_mutex: info: inserting 0x7f798bc83970  into  0x7f798b74f5d8  (id: 10 -> 142)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 2  i_parts: 9  index: 5  n_length: 138  int_length: 32  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
report_unknown_option: info: parsed => exiting
report_unknown_option: info: parsed => exiting
report_unknown_option: info: parsed => exiting
my_free: info: memory_used: 33184  size: -4200
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
open: info: share->use_count 1
close_thread_tables: info: thd->open_tables: 0x7f79a4eb0e70
close_thread_table: info: Adding mdl lock 1 to 2
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754a00
net_send_eof: info: EOF sent, so no more error sending allowed
do_command: info: Command on socket = 4 (Field List)
dispatch_command: info: command: 4
open_temporary_table: info: skip_temporary is set or no temporary tables
dispatch_command: info: derived: 0  view: 0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 24
add_to_locked_mutex: info: inserting 0x7f798bc846f0  into  0x7f798b7503d8  (id: 2 -> 143)
my_malloc: info: memory_used: 28984  size: 4472
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b7503d8  (id: 12 -> 143)
add_to_locked_mutex: info: inserting 0x7f798bc847b0  into  0x7f798b7503d8  (id: 10 -> 143)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 2  i_parts: 24  index: 5  n_length: 427  int_length: 88  com_length: 0  vcol_screen_length: 224
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 33456  size: -4472
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
column_bitmaps_signal: info: read_set: 0x7f79a4eb1d80  write_set: 0x7f79a4eb1da0
my_malloc: info: memory_used: 28984  size: 8152
column_bitmaps_signal: info: read_set: 0x7f798b7505a8  write_set: 0x7f798b7505a8
close_thread_tables: info: thd->open_tables: 0x7f79a4eb1c70
close_thread_table: info: Adding mdl lock 1 to 2
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754a00
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 4 (Field List)
dispatch_command: info: command: 4
open_temporary_table: info: skip_temporary is set or no temporary tables
dispatch_command: info: derived: 0  view: 0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 25
add_to_locked_mutex: info: inserting 0x7f798bc84870  into  0x7f798b7511d8  (id: 2 -> 144)
my_malloc: info: memory_used: 28984  size: 3448
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b7511d8  (id: 12 -> 144)
add_to_locked_mutex: info: inserting 0x7f798bc849f0  into  0x7f798b7511d8  (id: 10 -> 144)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 1  i_parts: 4  index: 2  n_length: 47  int_length: 26  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 32432  size: -3448
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
add_identifier: info: conv 'skynet' -> 'skynet'
add_identifier: info: conv 'map_venues' -> 'map_venues'
column_bitmaps_signal: info: read_set: 0x7f79a4eb2b80  write_set: 0x7f79a4eb2ba0
column_bitmaps_signal: info: read_set: 0x7f798b7513a8  write_set: 0x7f798b7513a8
close_thread_tables: info: thd->open_tables: 0x7f79a4eb2a70
close_thread_table: info: Adding mdl lock 1 to 2
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754a00
net_send_eof: info: EOF sent, so no more error sending allowed
do_command: info: Command on socket = 4 (Field List)
dispatch_command: info: command: 4
open_temporary_table: info: skip_temporary is set or no temporary tables
dispatch_command: info: derived: 0  view: 0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 26
add_to_locked_mutex: info: inserting 0x7f798bc84e70  into  0x7f798b751fd8  (id: 2 -> 145)
my_malloc: info: memory_used: 28984  size: 2640
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b751fd8  (id: 12 -> 145)
add_to_locked_mutex: info: inserting 0x7f798bc84b70  into  0x7f798b751fd8  (id: 10 -> 145)
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 4  n_length: 34  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 31624  size: -2640
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
add_identifier: info: conv 'skynet' -> 'skynet'
add_identifier: info: conv 'statics' -> 'statics'
column_bitmaps_signal: info: read_set: 0x7f79a4eb3980  write_set: 0x7f79a4eb39a0
column_bitmaps_signal: info: read_set: 0x7f798b7521a8  write_set: 0x7f798b7521a8
close_thread_tables: info: thd->open_tables: 0x7f79a4eb3870
close_thread_table: info: Adding mdl lock 1 to 2
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754a00
net_send_eof: info: EOF sent, so no more error sending allowed
do_command: info: Command on socket = 4 (Field List)
dispatch_command: info: command: 4
open_temporary_table: info: skip_temporary is set or no temporary tables
dispatch_command: info: derived: 0  view: 0
MDL_context::acquire_lock: info: Got lock without waiting
assign_new_table_id: info: table_id= 27
add_to_locked_mutex: info: inserting 0x7f798bc84930  into  0x7f798b752dd8  (id: 2 -> 146)
my_malloc: info: memory_used: 28984  size: 1672
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 17 bytes
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798b752dd8  (id: 12 -> 146)
add_to_locked_mutex: info: inserting 0x7f798bc84ab0  into  0x7f798b752dd8  (id: 10 -> 146)
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 2  n_length: 40  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: oq-debug: oqgraph_create_handler
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
report_unknown_option: info: parsed => exiting
report_unknown_option: info: parsed => exiting
report_unknown_option: info: parsed => exiting
my_free: info: memory_used: 30656  size: -1672
get_new_handler: oq-debug: oqgraph_create_handler
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
ha_oqgraph::open: oq-debug: thd: 0x7f798b7f8070; open(name=./skynet/version_history,mode=2,test_if_locked=18)
ha_oqgraph::open: oq-debug: share:(normalized_path=./skynet/db_history,path.length=19)
my_malloc: info: memory_used: 28984  size: 2592
TABLE_SHARE::init_from_binary_frm_image: info: extra segment size is 16 bytes
TABLE_SHARE::init_from_binary_frm_image: info: i_count: 0  i_parts: 0  index: 4  n_length: 51  int_length: 0  com_length: 0  vcol_screen_length: 0
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
my_free: info: memory_used: 31576  size: -2592
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
column_bitmaps_signal: info: read_set: 0x7f798bf47ba8  write_set: 0x7f798bf47bc8
column_bitmaps_signal: info: read_set: 0x7f798bf47ba8  write_set: 0x7f798bf47bc8
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
column_bitmaps_signal: info: read_set: 0x7f798b752fa8  write_set: 0x7f798b752fa8
close_thread_tables: info: thd->open_tables: 0x7f79a4eb4670
close_thread_table: info: Adding mdl lock 1 to 2
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754a00
net_send_eof: info: EOF sent, so no more error sending allowed
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f798bc88138
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 1
get_lock_data: info: sql_lock->table_count 1 sql_lock->lock_count 1
lock_external: info: count 1
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
THD::decide_logging_format: info: Query: SELECT * FROM version_history
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
Field_iterator_table_ref::set_field_iterator: info: field_it for 'version_history' is Field_iterator_table
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
my_malloc: info: memory_used: 28984  size: 8152
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bf6a088

Info about JOIN
version_history   type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::save_explain_data_intern: info: Select 0x7f798b7fc480, type (null), message NULL
JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
init_io_cache: info: init_io_cache: cachesize = 131072
handler::ha_rnd_next: oq-debug: fill_record() ::>> -,0,1,1.000000,-1,-1
handler::ha_rnd_next: oq-debug: fill_record() ::>> -,1,2,1.000000,-1,-1
handler::ha_rnd_next: oq-debug: fill_record() ::>> -,2,3,1.000000,-1,-1
_mi_writeinfo: info: operation: 0  tot_locks: 1
add_to_locked_mutex: info: inserting 0x7f798bc84f30  into  0x7f79a9809780  (id: 147 -> 23)
add_to_locked_mutex: info: inserting 0x7f798bc84f30  into  0x7f79a4eacd50  (id: 147 -> 136)
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 3 records output
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eb4670
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754a00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f798bc88138
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 1
get_lock_data: info: sql_lock->table_count 1 sql_lock->lock_count 1
lock_external: info: count 1
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
THD::decide_logging_format: info: Query: SELECT * FROM version_history
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
Field_iterator_table_ref::set_field_iterator: info: field_it for 'version_history' is Field_iterator_table
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
my_malloc: info: memory_used: 28984  size: 8152
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bf6a088

Info about JOIN
version_history   type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::save_explain_data_intern: info: Select 0x7f798b7fc480, type (null), message NULL
JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
init_io_cache: info: init_io_cache: cachesize = 131072
handler::ha_rnd_next: oq-debug: fill_record() ::>> -,0,1,1.000000,-1,-1
handler::ha_rnd_next: oq-debug: fill_record() ::>> -,1,2,1.000000,-1,-1
handler::ha_rnd_next: oq-debug: fill_record() ::>> -,2,3,1.000000,-1,-1
_mi_writeinfo: info: operation: 0  tot_locks: 1
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 3 records output
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eb4670
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754a00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 37136  size: -8152
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee230  into  0x7f79a8fa2900  (id: 148 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 3
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 3
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f798bf90070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f607240
st_select_lex::add_item_to_list: info: Item: 0x7f796f608438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f607b30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f696130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f696130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f607b30 at line 9574 tab 0x7f796f677b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f798bf94480, type (null), message NULL

WHERE:(after remove) 0x7f796f608d30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f69c130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f69c130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f608d30 at line 9574 tab 0x7f796f69f3c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f607d38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15bf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f6c9f50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f6072b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f6073d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f6c9e30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f679150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: g->table->in_use: 0x7f798b7f8070 <-- current_thd 0x7f798bf90070
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f679150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f677cf8 at line 9150 tab 0x7f796f676d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f677cf8 -> 0x7f796f69e088 at line 9574 tab 0x7f796f676d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f696150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f696150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f6770b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f798bf94480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f798bf90070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f69e088 -> 0x0 at line 20721 tab 0x7f796f676d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a40
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f607370
st_select_lex::add_item_to_list: info: Item: 0x7f796f6074c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f607600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f69f8c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f679150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f679150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f6770c8 at line 9150 tab 0x7f796f676088
make_join_select: info: select_cond changes 0x7f796f6770c8 -> 0x7f796f6773c8 at line 9574 tab 0x7f796f676088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f6763c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f6773c8 -> 0x7f796f677a18 at line 22557 tab 0x7f796f676088
JOIN::save_explain_data_intern: info: Select 0x7f798bf94480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f798bf90070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 69160  size: 136
my_free: info: memory_used: 69296  size: -1144
my_free: info: memory_used: 68152  size: -128
my_free: info: memory_used: 68024  size: -4056
my_free: info: memory_used: 63968  size: -8
create_sort_index: info: select_cond changes 0x7f796f677a18 -> 0x0 at line 20721 tab 0x7f796f676088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63960  size: -416
my_free: info: memory_used: 63544  size: -136
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 2 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a40
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f798bc85bf0  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85bf0  into  0x7f798bf91820  (id: 149 -> 148)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85cb0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798bf91820  (id: 12 -> 148)
add_to_locked_mutex: info: inserting 0x7f798bc85cb0  into  0x7f798bf91820  (id: 10 -> 148)
add_to_locked_mutex: info: inserting 0x7f798bc85b30  into  0x7f79a8fa2900  (id: 150 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85b30  into  0x7f798bf91820  (id: 150 -> 148)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee2f0  into  0x7f79a8fa2900  (id: 154 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 4
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 4
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f69c070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f661240
st_select_lex::add_item_to_list: info: Item: 0x7f796f662438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.2' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.2' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f661b30 (`skynet`.`db_history`.`version` = '0.0.2')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f641130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f641130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f661b30 at line 9574 tab 0x7f796f667b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f6a0480, type (null), message NULL

WHERE:(after remove) 0x7f796f662d30 (`skynet`.`db_history`.`prevVersion` = '0.0.2')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f643130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 3  offset: 0.5  max_keynr: 3  nod: 0  flag: -1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f643130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f662d30 at line 9574 tab 0x7f796f6933c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f661d38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f79a4eadad8  length: 1
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940e0  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15101  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f64ef50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f6612b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f6613d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '2' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f64ee30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f68c150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: g->table->in_use: 0x7f798bf90070 <-- current_thd 0x7f796f69c070
check_quick_select: oq-debug: thd: 0x7f796f69c070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f69c070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f68c150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f667cf8 at line 9150 tab 0x7f796f666d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f667cf8 -> 0x7f796f692088 at line 9574 tab 0x7f796f666d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f641150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f69c070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f69c070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f641150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f6670b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f6a0480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f69c070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,2,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,2,-1,1.000000,2,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,2,-1,0.000000,1,2
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 60856  size: 120
my_free: info: memory_used: 60976  size: -1024
create_sort_index: info: select_cond changes 0x7f796f692088 -> 0x0 at line 20721 tab 0x7f796f666d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 59952  size: -416
my_free: info: memory_used: 59536  size: -120
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a40
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f661370
st_select_lex::add_item_to_list: info: Item: 0x7f796f6614c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f661600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '2' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f6938c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f68c150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f69c070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f69c070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f68c150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/2/3 <= X <= dijkstras/2/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f6670c8 at line 9150 tab 0x7f796f666088
make_join_select: info: select_cond changes 0x7f796f6670c8 -> 0x7f796f6673c8 at line 9574 tab 0x7f796f666088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f6663c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f6673c8 -> 0x7f796f667a18 at line 22557 tab 0x7f796f666088
JOIN::save_explain_data_intern: info: Select 0x7f796f6a0480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f69c070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,2,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,2,3,-1.000000,0,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,2,3,1.000000,1,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f796f667a18 -> 0x0 at line 20721 tab 0x7f796f666088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a40
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f798bc85cb0  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85cb0  into  0x7f796f69d820  (id: 149 -> 154)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85d70  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f69d820  (id: 12 -> 154)
add_to_locked_mutex: info: inserting 0x7f798bc85d70  into  0x7f796f69d820  (id: 10 -> 154)
add_to_locked_mutex: info: inserting 0x7f798bc85b30  into  0x7f79a8fa2900  (id: 155 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85b30  into  0x7f796f69d820  (id: 155 -> 154)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee3b0  into  0x7f79a8fa2900  (id: 157 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 5
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 5
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f798bf90070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f6a4240
st_select_lex::add_item_to_list: info: Item: 0x7f796f6a5438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.2' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.2' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f6a4b30 (`skynet`.`db_history`.`version` = '0.0.2')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f640130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f640130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f6a4b30 at line 9574 tab 0x7f796f62bb38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f798bf94480, type (null), message NULL

WHERE:(after remove) 0x7f796f6a5d30 (`skynet`.`db_history`.`prevVersion` = '0.0.2')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f61c130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 3  offset: 0.5  max_keynr: 3  nod: 0  flag: -1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f61c130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f6a5d30 at line 9574 tab 0x7f796f61f3c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f6a4d38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f79a4eadad8  length: 1
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940e0  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15101  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f688f50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f6a42b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f6a43d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '2' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f688e30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f62d150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: g->table->in_use: 0x7f796f69c070 <-- current_thd 0x7f798bf90070
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f62d150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f62bcf8 at line 9150 tab 0x7f796f62ad70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f62bcf8 -> 0x7f796f61e088 at line 9574 tab 0x7f796f62ad70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f640150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f640150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f62b0b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f798bf94480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f798bf90070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,2,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,2,-1,1.000000,2,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,2,-1,0.000000,1,2
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 60856  size: 120
my_free: info: memory_used: 60976  size: -1024
create_sort_index: info: select_cond changes 0x7f796f61e088 -> 0x0 at line 20721 tab 0x7f796f62ad70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 59952  size: -416
my_free: info: memory_used: 59536  size: -120
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f6a4370
st_select_lex::add_item_to_list: info: Item: 0x7f796f6a44c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f6a4600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '2' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f61f8c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f62d150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f62d150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/2/3 <= X <= dijkstras/2/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f62b0c8 at line 9150 tab 0x7f796f62a088
make_join_select: info: select_cond changes 0x7f796f62b0c8 -> 0x7f796f62b3c8 at line 9574 tab 0x7f796f62a088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f62a3c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f62b3c8 -> 0x7f796f62ba18 at line 22557 tab 0x7f796f62a088
JOIN::save_explain_data_intern: info: Select 0x7f798bf94480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f798bf90070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,2,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,2,3,-1.000000,0,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,2,3,1.000000,1,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f796f62ba18 -> 0x0 at line 20721 tab 0x7f796f62a088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f798bc85cb0  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85cb0  into  0x7f798bf91820  (id: 149 -> 157)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85d70  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798bf91820  (id: 12 -> 157)
add_to_locked_mutex: info: inserting 0x7f798bc85d70  into  0x7f798bf91820  (id: 10 -> 157)
add_to_locked_mutex: info: inserting 0x7f798bc85b30  into  0x7f79a8fa2900  (id: 158 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85b30  into  0x7f798bf91820  (id: 158 -> 157)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee470  into  0x7f79a8fa2900  (id: 160 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 6
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 6
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f798bf90070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f683240
st_select_lex::add_item_to_list: info: Item: 0x7f796f684438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f683b30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f68d130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f68d130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f683b30 at line 9574 tab 0x7f796f689b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f798bf94480, type (null), message NULL
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee530  into  0x7f79a8fa2900  (id: 161 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 7
create_thread_to_handle_connection: info: Thread created

WHERE:(after remove) 0x7f796f684d30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f68f130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f68f130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f684d30 at line 9574 tab 0x7f796f6713c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f683d38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15bf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f644f50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f6832b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f6833d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f644e30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f68b150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f68b150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f689cf8 at line 9150 tab 0x7f796f688d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f689cf8 -> 0x7f796f670088 at line 9574 tab 0x7f796f688d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f68d150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f68d150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f6890b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f798bf94480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f798bf90070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f670088 -> 0x0 at line 20721 tab 0x7f796f688d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 7
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f639070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f6d1240
st_select_lex::add_item_to_list: info: Item: 0x7f796f6d2438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f6d1b30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f716130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f716130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f6d1b30 at line 9574 tab 0x7f796f6d7b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f63d480, type (null), message NULL

WHERE:(after remove) 0x7f796f6d2d30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f721130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f721130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f6d2d30 at line 9574 tab 0x7f796f7353c0
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f683390
st_select_lex::add_item_to_list: info: Item: 0x7f796f6834e0
st_select_lex::add_item_to_list: info: Item: 0x7f796f683620
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_realpath: info: executing realpath
column_bitmaps_signal: info: read_set: 0x7f798be94b80  write_set: 0x7f798be94ba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' AND `seq` <= '1' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f671cd8 ((`skynet`.`v`.`seq` > 0) and (`skynet`.`v`.`seq` <= 1) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
my_malloc: info: memory_used: 46888  size: 8152
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f68b150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f798bf90070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f68b150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f6895b0 at line 9150 tab 0x7f796f688288
make_join_select: info: select_cond changes 0x7f796f6895b0 -> 0x7f796f6898c0 at line 9574 tab 0x7f796f688288
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f6885c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f6898c0 -> 0x7f796f689f10 at line 22557 tab 0x7f796f688288
JOIN::save_explain_data_intern: info: Select 0x7f798bf94480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f798bf90070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f796f689f10 -> 0x0 at line 20721 tab 0x7f796f688288
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f798be94a70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f6d1d38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7accb61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7accb65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7accbf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f775f50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f6759c0
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f6d12b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f6d13d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f775e30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f6d9150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: g->table->in_use: 0x7f798bf90070 <-- current_thd 0x7f796f639070
check_quick_select: oq-debug: thd: 0x7f796f639070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f639070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f6d9150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f6d7cf8 at line 9150 tab 0x7f796f6d6d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f6d7cf8 -> 0x7f796f734088 at line 9574 tab 0x7f796f6d6d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f716150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f639070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f639070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f716150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f6d70b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f63d480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f639070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f734088 -> 0x0 at line 20721 tab 0x7f796f6d6d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f675a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f6759c0
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f798bc85cb0  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85cb0  into  0x7f798bf91820  (id: 149 -> 160)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85d70  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f798bf91820  (id: 12 -> 160)
add_to_locked_mutex: info: inserting 0x7f798bc85d70  into  0x7f798bf91820  (id: 10 -> 160)
add_to_locked_mutex: info: inserting 0x7f798bc85b30  into  0x7f79a8fa2900  (id: 162 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85b30  into  0x7f798bf91820  (id: 162 -> 160)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f6d1390
st_select_lex::add_item_to_list: info: Item: 0x7f796f6d14e0
st_select_lex::add_item_to_list: info: Item: 0x7f796f6d1620
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' AND `seq` <= '1' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f735cd8 ((`skynet`.`v`.`seq` > 0) and (`skynet`.`v`.`seq` <= 1) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
my_malloc: info: memory_used: 46888  size: 8152
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f6d9150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f639070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f639070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f6d9150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f6d75b0 at line 9150 tab 0x7f796f6d6288
make_join_select: info: select_cond changes 0x7f796f6d75b0 -> 0x7f796f6d78c0 at line 9574 tab 0x7f796f6d6288
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f6d65c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f6d78c0 -> 0x7f796f6d7f10 at line 22557 tab 0x7f796f6d6288
JOIN::save_explain_data_intern: info: Select 0x7f796f63d480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f639070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f796f6d7f10 -> 0x0 at line 20721 tab 0x7f796f6d6288
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f675a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f6759c0
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f6a6a70  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f6a6a70  into  0x7f796f63a820  (id: 149 -> 161)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f6a6b30  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f63a820  (id: 12 -> 161)
add_to_locked_mutex: info: inserting 0x7f796f6a6b30  into  0x7f796f63a820  (id: 10 -> 161)
add_to_locked_mutex: info: inserting 0x7f796f6a69b0  into  0x7f79a8fa2900  (id: 164 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f6a69b0  into  0x7f796f63a820  (id: 164 -> 161)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee5f0  into  0x7f79a8fa2900  (id: 166 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 8
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 8
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f734240
st_select_lex::add_item_to_list: info: Item: 0x7f796f735438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f734b30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f6a6130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f6a6130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f734b30 at line 9574 tab 0x7f796f75db38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f735d30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f754130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f754130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f735d30 at line 9574 tab 0x7f796f7603c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f734d38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7accb61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7accb65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7accbf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f76af50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7342b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7343d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f76ae30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f764150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: g->table->in_use: 0x7f796f639070 <-- current_thd 0x7f796f695070
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f764150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f75dcf8 at line 9150 tab 0x7f796f75cd70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f75dcf8 -> 0x7f796f75f088 at line 9574 tab 0x7f796f75cd70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f6a6150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f6a6150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f75d0b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f75f088 -> 0x0 at line 20721 tab 0x7f796f75cd70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f734370
st_select_lex::add_item_to_list: info: Item: 0x7f796f7344c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f734600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f7608c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f764150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f764150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f75d0c8 at line 9150 tab 0x7f796f75c088
make_join_select: info: select_cond changes 0x7f796f75d0c8 -> 0x7f796f75d3c8 at line 9574 tab 0x7f796f75c088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f75c3c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f75d3c8 -> 0x7f796f75da18 at line 22557 tab 0x7f796f75c088
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 69160  size: 136
my_free: info: memory_used: 69296  size: -1144
my_free: info: memory_used: 68152  size: -128
my_free: info: memory_used: 68024  size: -4056
my_free: info: memory_used: 63968  size: -8
create_sort_index: info: select_cond changes 0x7f796f75da18 -> 0x0 at line 20721 tab 0x7f796f75c088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63960  size: -416
my_free: info: memory_used: 63544  size: -136
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 2 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f798bc85cb0  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85cb0  into  0x7f796f696820  (id: 149 -> 166)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85d70  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 166)
add_to_locked_mutex: info: inserting 0x7f798bc85d70  into  0x7f796f696820  (id: 10 -> 166)
add_to_locked_mutex: info: inserting 0x7f798bc85b30  into  0x7f79a8fa2900  (id: 167 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85b30  into  0x7f796f696820  (id: 167 -> 166)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f798bc85a70  into  0x7f79a8fa2900  (id: 169 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 9
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 9
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fa240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fb438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7fab30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7ed130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f7ed130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fab30 at line 9574 tab 0x7f796f7e9b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f7fbd30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7ef130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f7ef130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fbd30 at line 9574 tab 0x7f796f7633c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f7fad38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7accb61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7accb65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7accbf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f765f50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fa2b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fa3d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f765e30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7eb150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7eb150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7e9cf8 at line 9150 tab 0x7f796f7e8d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f7e9cf8 -> 0x7f796f762088 at line 9574 tab 0x7f796f7e8d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7ed150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7ed150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7e90b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f762088 -> 0x0 at line 20721 tab 0x7f796f7e8d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fa370
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fa4c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fa600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f7638c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7eb150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f7eb150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7e90c8 at line 9150 tab 0x7f796f7e8088
make_join_select: info: select_cond changes 0x7f796f7e90c8 -> 0x7f796f7e93c8 at line 9574 tab 0x7f796f7e8088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7e83c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f7e93c8 -> 0x7f796f7e9a18 at line 22557 tab 0x7f796f7e8088
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 69160  size: 136
my_free: info: memory_used: 69296  size: -1144
my_free: info: memory_used: 68152  size: -128
my_free: info: memory_used: 68024  size: -4056
my_free: info: memory_used: 63968  size: -8
create_sort_index: info: select_cond changes 0x7f796f7e9a18 -> 0x0 at line 20721 tab 0x7f796f7e8088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63960  size: -416
my_free: info: memory_used: 63544  size: -136
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 2 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f796f696820  (id: 149 -> 169)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 169)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f796f696820  (id: 10 -> 169)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f79a8fa2900  (id: 170 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f796f696820  (id: 170 -> 169)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f798bc85b30  into  0x7f79a8fa2900  (id: 172 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 10
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 10
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f747240
st_select_lex::add_item_to_list: info: Item: 0x7f796f748438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.2' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.2' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f747b30 (`skynet`.`db_history`.`version` = '0.0.2')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7a4130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadae0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f7a4130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f747b30 at line 9574 tab 0x7f796f74bb38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f748d30 (`skynet`.`db_history`.`prevVersion` = '0.0.2')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7af130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f798bc85cb0  into  0x7f79a8fa2900  (id: 173 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 11
create_thread_to_handle_connection: info: Thread created
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 3  offset: 0.5  max_keynr: 3  nod: 0  flag: -1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f7af130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f748d30 at line 9574 tab 0x7f796f7b23c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f747d38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7accb65  from: 0x7f79a4eadad8  length: 1
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7accb65  from: 0x7f798be940e0  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7acc101  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7acc105  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7acc105  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7dff50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7472b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7473d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '2' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f7dfe30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f74d150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f74d150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f74bcf8 at line 9150 tab 0x7f796f74ad70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f74bcf8 -> 0x7f796f7b1088 at line 9574 tab 0x7f796f74ad70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7a4150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7a4150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f74b0b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,2,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,2,-1,1.000000,2,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,2,-1,0.000000,1,2
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 60856  size: 120
my_free: info: memory_used: 60976  size: -1024
create_sort_index: info: select_cond changes 0x7f796f7b1088 -> 0x0 at line 20721 tab 0x7f796f74ad70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 59952  size: -416
my_free: info: memory_used: 59536  size: -120
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 11
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f7b4070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7c6240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7c7438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.2' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.2' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7c6b30 (`skynet`.`db_history`.`version` = '0.0.2')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f653130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f653130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7c6b30 at line 9574 tab 0x7f796f7ccb38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f7b8480, type (null), message NULL

WHERE:(after remove) 0x7f796f7c7d30 (`skynet`.`db_history`.`prevVersion` = '0.0.2')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f65e130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 3  offset: 0.5  max_keynr: 3  nod: 0  flag: -1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f65e130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7c7d30 at line 9574 tab 0x7f796f6613c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f7c6d38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f79a4eadad8  length: 1
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940e0  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15101  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f68bf50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f769a00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f747370
st_select_lex::add_item_to_list: info: Item: 0x7f796f7474c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f747600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '2' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f7b28c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f74d150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f74d150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/2/3 <= X <= dijkstras/2/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f74b0c8 at line 9150 tab 0x7f796f74a088
make_join_select: info: select_cond changes 0x7f796f74b0c8 -> 0x7f796f74b3c8 at line 9574 tab 0x7f796f74a088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f74a3c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f74b3c8 -> 0x7f796f74ba18 at line 22557 tab 0x7f796f74a088
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,2,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,2,3,-1.000000,0,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,2,3,1.000000,1,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f796f74ba18 -> 0x0 at line 20721 tab 0x7f796f74a088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f796f696820  (id: 149 -> 172)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 172)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f796f696820  (id: 10 -> 172)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f79a8fa2900  (id: 174 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f796f696820  (id: 174 -> 172)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7c62b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7c63d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '2' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f68be30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7ce150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: g->table->in_use: 0x7f796f695070 <-- current_thd 0x7f796f7b4070
check_quick_select: oq-debug: thd: 0x7f796f7b4070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f7b4070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7ce150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7cccf8 at line 9150 tab 0x7f796f7cbd70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f7cccf8 -> 0x7f796f660088 at line 9574 tab 0x7f796f7cbd70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f653150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f7b4070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f7b4070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f653150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7cc0b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f7b8480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f7b4070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,2,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,2,-1,1.000000,2,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,2,-1,0.000000,1,2
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 60856  size: 120
my_free: info: memory_used: 60976  size: -1024
create_sort_index: info: select_cond changes 0x7f796f660088 -> 0x0 at line 20721 tab 0x7f796f7cbd70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 59952  size: -416
my_free: info: memory_used: 59536  size: -120
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f769a40
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f769a00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7c6370
st_select_lex::add_item_to_list: info: Item: 0x7f796f7c64c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7c6600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '2' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f6618c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7ce150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f7b4070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f7b4070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f7ce150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/2/3 <= X <= dijkstras/2/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7cc0c8 at line 9150 tab 0x7f796f7cb088
make_join_select: info: select_cond changes 0x7f796f7cc0c8 -> 0x7f796f7cc3c8 at line 9574 tab 0x7f796f7cb088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7cb3c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f7cc3c8 -> 0x7f796f7cca18 at line 22557 tab 0x7f796f7cb088
JOIN::save_explain_data_intern: info: Select 0x7f796f7b8480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f7b4070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,2,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,2,3,-1.000000,0,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,2,3,1.000000,1,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f796f7cca18 -> 0x0 at line 20721 tab 0x7f796f7cb088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f798bc85d70  into  0x7f79a8fa2900  (id: 176 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 12
create_thread_to_handle_connection: info: Thread created
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f769a40
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f769a00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f76a370  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f76a370  into  0x7f796f7b5820  (id: 149 -> 173)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f76a430  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f7b5820  (id: 12 -> 173)
add_to_locked_mutex: info: inserting 0x7f796f76a430  into  0x7f796f7b5820  (id: 10 -> 173)
add_to_locked_mutex: info: inserting 0x7f796f76a2b0  into  0x7f79a8fa2900  (id: 177 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f76a2b0  into  0x7f796f7b5820  (id: 177 -> 173)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 12
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7de240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7df438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7deb30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7e8130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f7e8130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7deb30 at line 9574 tab 0x7f796f7e4b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f7dfd30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7ef130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f7ef130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7dfd30 at line 9574 tab 0x7f796f7d33c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f7ded38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7accb61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7accb65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7accbf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7d5f50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7de2b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7de3d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f7d5e30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7e6150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: g->table->in_use: 0x7f796f7b4070 <-- current_thd 0x7f796f695070
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7e6150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7e4cf8 at line 9150 tab 0x7f796f7e3d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f7e4cf8 -> 0x7f796f7d2088 at line 9574 tab 0x7f796f7e3d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7e8150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7e8150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7e40b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f7d2088 -> 0x0 at line 20721 tab 0x7f796f7e3d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7de390
st_select_lex::add_item_to_list: info: Item: 0x7f796f7de4e0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7de620
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' AND `seq` <= '1' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f7d3cd8 ((`skynet`.`v`.`seq` > 0) and (`skynet`.`v`.`seq` <= 1) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
my_malloc: info: memory_used: 46888  size: 8152
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7e6150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f7e6150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7e45b0 at line 9150 tab 0x7f796f7e3288
make_join_select: info: select_cond changes 0x7f796f7e45b0 -> 0x7f796f7e48c0 at line 9574 tab 0x7f796f7e3288
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7e35c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f7e48c0 -> 0x7f796f7e4f10 at line 22557 tab 0x7f796f7e3288
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f796f7e4f10 -> 0x0 at line 20721 tab 0x7f796f7e3288
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f796f696820  (id: 149 -> 176)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 176)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f796f696820  (id: 10 -> 176)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f79a8fa2900  (id: 179 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f796f696820  (id: 179 -> 176)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f798bc85e30  into  0x7f79a8fa2900  (id: 181 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 13
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 13
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fd438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7fcb30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb8130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f798bfb8130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fcb30 at line 9574 tab 0x7f796f7eeb38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f7fdd30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f6130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7ac80c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f7f6130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fdd30 at line 9574 tab 0x7f796f63a3c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f7fcd38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7accb61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7acc5b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7accb65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7accbf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f65cf50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc2b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc3d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f65ce30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f0150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7f0150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7eecf8 at line 9150 tab 0x7f796f7edd70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f7eecf8 -> 0x7f796f639088 at line 9574 tab 0x7f796f7edd70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb8150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f798bfb8150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7ee0b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f639088 -> 0x0 at line 20721 tab 0x7f796f7edd70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f798bc85ef0  into  0x7f79a8fa2900  (id: 182 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 14
create_thread_to_handle_connection: info: Thread created
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc390
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc4e0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc620
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' AND `seq` <= '1' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f63acd8 ((`skynet`.`v`.`seq` > 0) and (`skynet`.`v`.`seq` <= 1) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
my_malloc: info: memory_used: 46888  size: 8152
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f0150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f7f0150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7ee5b0 at line 9150 tab 0x7f796f7ed288
make_join_select: info: select_cond changes 0x7f796f7ee5b0 -> 0x7f796f7ee8c0 at line 9574 tab 0x7f796f7ed288
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7ed5c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f7ee8c0 -> 0x7f796f7eef10 at line 22557 tab 0x7f796f7ed288
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f796f7eef10 -> 0x0 at line 20721 tab 0x7f796f7ed288
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 14
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f655070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f671240
st_select_lex::add_item_to_list: info: Item: 0x7f796f672438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f671b30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f68b130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f68b130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f671b30 at line 9574 tab 0x7f796f677b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f659480, type (null), message NULL

WHERE:(after remove) 0x7f796f672d30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f780130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f780130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f672d30 at line 9574 tab 0x7f796f7833c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f671d38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15bf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7adf50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f7ffa00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f796f696820  (id: 149 -> 181)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 181)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f796f696820  (id: 10 -> 181)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f79a8fa2900  (id: 183 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f796f696820  (id: 183 -> 181)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f6712b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f6713d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f7ade30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f679150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: g->table->in_use: 0x7f796f695070 <-- current_thd 0x7f796f655070
check_quick_select: oq-debug: thd: 0x7f796f655070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f655070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f679150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f677cf8 at line 9150 tab 0x7f796f676d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f677cf8 -> 0x7f796f782088 at line 9574 tab 0x7f796f676d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f68b150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f655070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f655070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f68b150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f6770b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f659480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f655070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f782088 -> 0x0 at line 20721 tab 0x7f796f676d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f7ffa40
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f7ffa00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f671370
st_select_lex::add_item_to_list: info: Item: 0x7f796f6714c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f671600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f7838c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f679150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f655070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f655070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f679150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f6770c8 at line 9150 tab 0x7f796f676088
make_join_select: info: select_cond changes 0x7f796f6770c8 -> 0x7f796f6773c8 at line 9574 tab 0x7f796f676088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f6763c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f6773c8 -> 0x7f796f677a18 at line 22557 tab 0x7f796f676088
JOIN::save_explain_data_intern: info: Select 0x7f796f659480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f655070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 69160  size: 136
my_free: info: memory_used: 69296  size: -1144
my_free: info: memory_used: 68152  size: -128
my_free: info: memory_used: 68024  size: -4056
my_free: info: memory_used: 63968  size: -8
create_sort_index: info: select_cond changes 0x7f796f677a18 -> 0x0 at line 20721 tab 0x7f796f676088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63960  size: -416
my_free: info: memory_used: 63544  size: -136
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 2 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f7ffa40
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f796f7ffa00
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f66c130  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f66c130  into  0x7f796f656820  (id: 149 -> 182)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f66c1f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f656820  (id: 12 -> 182)
add_to_locked_mutex: info: inserting 0x7f796f66c1f0  into  0x7f796f656820  (id: 10 -> 182)
add_to_locked_mutex: info: inserting 0x7f798bc85d70  into  0x7f79a8fa2900  (id: 185 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bc85d70  into  0x7f796f656820  (id: 185 -> 182)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f798bc85fb0  into  0x7f79a8fa2900  (id: 187 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 15
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 15
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fd438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.2' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.2' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7fcb30 (`skynet`.`db_history`.`version` = '0.0.2')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb1130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f798bfb1130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fcb30 at line 9574 tab 0x7f798bf93b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f7fdd30 (`skynet`.`db_history`.`prevVersion` = '0.0.2')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfbc130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 3  offset: 0.5  max_keynr: 3  nod: 0  flag: -1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f798bfbc130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fdd30 at line 9574 tab 0x7f796f63a3c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f7fcd38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f79a4eadad8  length: 1
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940e0  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15101  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f664f50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc2b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc3d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '2' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f664e30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: g->table->in_use: 0x7f796f655070 <-- current_thd 0x7f796f695070
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f798bf93cf8 at line 9150 tab 0x7f798bf92d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f798bf93cf8 -> 0x7f796f639088 at line 9574 tab 0x7f798bf92d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb1150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f798bfb1150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bf930b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,2,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,2,-1,1.000000,2,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,2,-1,0.000000,1,2
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 60856  size: 120
my_free: info: memory_used: 60976  size: -1024
create_sort_index: info: select_cond changes 0x7f796f639088 -> 0x0 at line 20721 tab 0x7f798bf92d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 59952  size: -416
my_free: info: memory_used: 59536  size: -120
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc370
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc4c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '2' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f63a8c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/2/3 <= X <= dijkstras/2/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f798bf930c8 at line 9150 tab 0x7f798bf92088
make_join_select: info: select_cond changes 0x7f798bf930c8 -> 0x7f798bf933c8 at line 9574 tab 0x7f798bf92088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bf923c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f798bf933c8 -> 0x7f798bf93a18 at line 22557 tab 0x7f798bf92088
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,2,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,2,3,-1.000000,0,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,2,3,1.000000,1,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f798bf93a18 -> 0x0 at line 20721 tab 0x7f798bf92088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f796f696820  (id: 149 -> 187)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 187)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f796f696820  (id: 10 -> 187)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f79a8fa2900  (id: 188 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f796f696820  (id: 188 -> 187)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee230  into  0x7f79a8fa2900  (id: 190 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 16
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 16
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fd438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7fcb30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb1130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f798bfb1130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fcb30 at line 9574 tab 0x7f798bf93b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f7fdd30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfbc130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f798bfbc130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fdd30 at line 9574 tab 0x7f796f63a3c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f7fcd38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15bf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f664f50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc2b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc3d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f664e30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f798bf93cf8 at line 9150 tab 0x7f798bf92d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f798bf93cf8 -> 0x7f796f639088 at line 9574 tab 0x7f798bf92d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb1150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f798bfb1150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bf930b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f639088 -> 0x0 at line 20721 tab 0x7f798bf92d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc390
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc4e0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc620
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' AND `seq` <= '1' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f63acd8 ((`skynet`.`v`.`seq` > 0) and (`skynet`.`v`.`seq` <= 1) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
my_malloc: info: memory_used: 46888  size: 8152
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f798bf935b0 at line 9150 tab 0x7f798bf92288
make_join_select: info: select_cond changes 0x7f798bf935b0 -> 0x7f798bf938c0 at line 9574 tab 0x7f798bf92288
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bf925c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f798bf938c0 -> 0x7f798bf93f10 at line 22557 tab 0x7f798bf92288
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f798bf93f10 -> 0x0 at line 20721 tab 0x7f798bf92288
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f796f696820  (id: 149 -> 190)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 190)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f796f696820  (id: 10 -> 190)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f79a8fa2900  (id: 191 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f796f696820  (id: 191 -> 190)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee2f0  into  0x7f79a8fa2900  (id: 193 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 17
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 17
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fd438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7fcb30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb1130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f798bfb1130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fcb30 at line 9574 tab 0x7f798bf93b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f7fdd30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfbc130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f798bfbc130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fdd30 at line 9574 tab 0x7f796f63a3c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f7fcd38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15bf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f664f50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc2b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc3d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f664e30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f798bf93cf8 at line 9150 tab 0x7f798bf92d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f798bf93cf8 -> 0x7f796f639088 at line 9574 tab 0x7f798bf92d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb1150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f798bfb1150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bf930b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f639088 -> 0x0 at line 20721 tab 0x7f798bf92d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc370
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc4c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f63a8c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f798bf930c8 at line 9150 tab 0x7f798bf92088
make_join_select: info: select_cond changes 0x7f798bf930c8 -> 0x7f798bf933c8 at line 9574 tab 0x7f798bf92088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bf923c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f798bf933c8 -> 0x7f798bf93a18 at line 22557 tab 0x7f798bf92088
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 69160  size: 136
my_free: info: memory_used: 69296  size: -1144
my_free: info: memory_used: 68152  size: -128
my_free: info: memory_used: 68024  size: -4056
my_free: info: memory_used: 63968  size: -8
create_sort_index: info: select_cond changes 0x7f798bf93a18 -> 0x0 at line 20721 tab 0x7f798bf92088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63960  size: -416
my_free: info: memory_used: 63544  size: -136
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 2 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f796f696820  (id: 149 -> 193)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 193)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f796f696820  (id: 10 -> 193)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f79a8fa2900  (id: 194 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f796f696820  (id: 194 -> 193)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee3b0  into  0x7f79a8fa2900  (id: 196 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 18
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 18
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fd438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7fcb30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb1130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f798bfb1130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fcb30 at line 9574 tab 0x7f798bf93b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f7fdd30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfbc130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f798bfbc130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fdd30 at line 9574 tab 0x7f796f63a3c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f7fcd38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15bf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f664f50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc2b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc3d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f664e30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f798bf93cf8 at line 9150 tab 0x7f798bf92d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f798bf93cf8 -> 0x7f796f639088 at line 9574 tab 0x7f798bf92d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb1150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f798bfb1150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bf930b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f639088 -> 0x0 at line 20721 tab 0x7f798bf92d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc370
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc4c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f63a8c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f798bf95150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f798bf930c8 at line 9150 tab 0x7f798bf92088
make_join_select: info: select_cond changes 0x7f798bf930c8 -> 0x7f798bf933c8 at line 9574 tab 0x7f798bf92088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bf923c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f798bf933c8 -> 0x7f798bf93a18 at line 22557 tab 0x7f798bf92088
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 69160  size: 136
my_free: info: memory_used: 69296  size: -1144
my_free: info: memory_used: 68152  size: -128
my_free: info: memory_used: 68024  size: -4056
my_free: info: memory_used: 63968  size: -8
create_sort_index: info: select_cond changes 0x7f798bf93a18 -> 0x0 at line 20721 tab 0x7f798bf92088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63960  size: -416
my_free: info: memory_used: 63544  size: -136
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 2 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f796f696820  (id: 149 -> 196)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 196)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f796f696820  (id: 10 -> 196)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f79a8fa2900  (id: 197 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f796f696820  (id: 197 -> 196)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee470  into  0x7f79a8fa2900  (id: 199 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 19
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 19
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fd438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.2' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.2' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7fcb30 (`skynet`.`db_history`.`version` = '0.0.2')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb8130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f798bfb8130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fcb30 at line 9574 tab 0x7f798bfb4b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f7fdd30 (`skynet`.`db_history`.`prevVersion` = '0.0.2')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f657130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 3  offset: 0.5  max_keynr: 3  nod: 0  flag: -1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f657130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7fdd30 at line 9574 tab 0x7f796f65a3c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f7fcd38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f79a4eadad8  length: 1
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940e0  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15101  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f684f50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc2b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc3d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '2' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f684e30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb6150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f798bfb6150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f798bfb4cf8 at line 9150 tab 0x7f798bfb3d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f798bfb4cf8 -> 0x7f796f659088 at line 9574 tab 0x7f798bfb3d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb8150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f798bfb8150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bfb40b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,2,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,2,-1,1.000000,2,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,2,-1,0.000000,1,2
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 60856  size: 120
my_free: info: memory_used: 60976  size: -1024
create_sort_index: info: select_cond changes 0x7f796f659088 -> 0x0 at line 20721 tab 0x7f798bfb3d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 59952  size: -416
my_free: info: memory_used: 59536  size: -120
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc370
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc4c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7fc600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '2' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f65a8c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f798bfb6150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f798bfb6150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/2/3 <= X <= dijkstras/2/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f798bfb40c8 at line 9150 tab 0x7f798bfb3088
make_join_select: info: select_cond changes 0x7f798bfb40c8 -> 0x7f798bfb43c8 at line 9574 tab 0x7f798bfb3088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bfb33c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f798bfb43c8 -> 0x7f798bfb4a18 at line 22557 tab 0x7f798bfb3088
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,2,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,2,3,-1.000000,0,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,2,3,1.000000,1,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f798bfb4a18 -> 0x0 at line 20721 tab 0x7f798bfb3088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f796f696820  (id: 149 -> 199)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 199)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f796f696820  (id: 10 -> 199)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f79a8fa2900  (id: 200 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f796f696820  (id: 200 -> 199)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee530  into  0x7f79a8fa2900  (id: 202 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 20
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 20
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7f0438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.2' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.2' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7efb30 (`skynet`.`db_history`.`version` = '0.0.2')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f9130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f7f9130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7efb30 at line 9574 tab 0x7f796f7f5b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f7f0d30 (`skynet`.`db_history`.`prevVersion` = '0.0.2')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f657130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 3  offset: 0.5  max_keynr: 3  nod: 0  flag: -1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f657130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7f0d30 at line 9574 tab 0x7f796f65a3c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f7efd38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f79a4eadad8  length: 1
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940e0  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15101  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f67cf50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef2b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef3d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '2' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f67ce30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7f5cf8 at line 9150 tab 0x7f796f7f4d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f7f5cf8 -> 0x7f796f659088 at line 9574 tab 0x7f796f7f4d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f9150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7f9150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7f50b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,2,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,2,-1,1.000000,2,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,2,-1,0.000000,1,2
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 60856  size: 120
my_free: info: memory_used: 60976  size: -1024
create_sort_index: info: select_cond changes 0x7f796f659088 -> 0x0 at line 20721 tab 0x7f796f7f4d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 59952  size: -416
my_free: info: memory_used: 59536  size: -120
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef370
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef4c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '2' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f65a8c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/2/3 <= X <= dijkstras/2/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7f50c8 at line 9150 tab 0x7f796f7f4088
make_join_select: info: select_cond changes 0x7f796f7f50c8 -> 0x7f796f7f53c8 at line 9574 tab 0x7f796f7f4088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7f43c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f7f53c8 -> 0x7f796f7f5a18 at line 22557 tab 0x7f796f7f4088
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,2,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,2,3,-1.000000,0,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,2,3,1.000000,1,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f796f7f5a18 -> 0x0 at line 20721 tab 0x7f796f7f4088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f796f696820  (id: 149 -> 202)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 202)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f796f696820  (id: 10 -> 202)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f79a8fa2900  (id: 203 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f796f696820  (id: 203 -> 202)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
my_service_thread_sleep: info: sleeping 30000000000 nano seconds
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f79927ee5f0  into  0x7f79a8fa2900  (id: 205 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 21
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 21
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7f0438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7efb30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f9130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f7f9130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7efb30 at line 9574 tab 0x7f796f7f5b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f7f0d30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f657130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f657130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7f0d30 at line 9574 tab 0x7f796f65a3c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f7efd38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15bf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f67cf50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef2b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef3d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f67ce30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7f5cf8 at line 9150 tab 0x7f796f7f4d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f7f5cf8 -> 0x7f796f659088 at line 9574 tab 0x7f796f7f4d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f9150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7f9150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7f50b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f659088 -> 0x0 at line 20721 tab 0x7f796f7f4d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef390
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef4e0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef620
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' AND `seq` <= '1' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f65acd8 ((`skynet`.`v`.`seq` > 0) and (`skynet`.`v`.`seq` <= 1) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
my_malloc: info: memory_used: 46888  size: 8152
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7f55b0 at line 9150 tab 0x7f796f7f4288
make_join_select: info: select_cond changes 0x7f796f7f55b0 -> 0x7f796f7f58c0 at line 9574 tab 0x7f796f7f4288
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7f45c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f7f58c0 -> 0x7f796f7f5f10 at line 22557 tab 0x7f796f7f4288
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f796f7f5f10 -> 0x0 at line 20721 tab 0x7f796f7f4288
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f796f696820  (id: 149 -> 205)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 205)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f796f696820  (id: 10 -> 205)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f79a8fa2900  (id: 206 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f796f696820  (id: 206 -> 205)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f796f73c130  into  0x7f79a8fa2900  (id: 208 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 22
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 22
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7f0438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7efb30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f9130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f7f9130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7efb30 at line 9574 tab 0x7f796f7f5b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f7f0d30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f657130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f657130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7f0d30 at line 9574 tab 0x7f796f65a3c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f7efd38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15bf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f67cf50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef2b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef3d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f67ce30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7f5cf8 at line 9150 tab 0x7f796f7f4d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f7f5cf8 -> 0x7f796f659088 at line 9574 tab 0x7f796f7f4d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f9150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7f9150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7f50b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f659088 -> 0x0 at line 20721 tab 0x7f796f7f4d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef370
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef4c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f65a8c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7f50c8 at line 9150 tab 0x7f796f7f4088
make_join_select: info: select_cond changes 0x7f796f7f50c8 -> 0x7f796f7f53c8 at line 9574 tab 0x7f796f7f4088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7f43c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f7f53c8 -> 0x7f796f7f5a18 at line 22557 tab 0x7f796f7f4088
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 69160  size: 136
my_free: info: memory_used: 69296  size: -1144
my_free: info: memory_used: 68152  size: -128
my_free: info: memory_used: 68024  size: -4056
my_free: info: memory_used: 63968  size: -8
create_sort_index: info: select_cond changes 0x7f796f7f5a18 -> 0x0 at line 20721 tab 0x7f796f7f4088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63960  size: -416
my_free: info: memory_used: 63544  size: -136
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 2 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f796f696820  (id: 149 -> 208)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 208)
add_to_locked_mutex: info: inserting 0x7f796f73c4f0  into  0x7f796f696820  (id: 10 -> 208)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f79a8fa2900  (id: 209 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f796f696820  (id: 209 -> 208)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f796f73c1f0  into  0x7f79a8fa2900  (id: 211 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 23
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 23
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7f0438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.2' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.2' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7efb30 (`skynet`.`db_history`.`version` = '0.0.2')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f9130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f7f9130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7efb30 at line 9574 tab 0x7f796f7f5b38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f7f0d30 (`skynet`.`db_history`.`prevVersion` = '0.0.2')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f657130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 3  offset: 0.5  max_keynr: 3  nod: 0  flag: -1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f657130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.2 <= X <= 0.0.2
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7f0d30 at line 9574 tab 0x7f796f65a3c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.2

JOIN::save_explain_data_intern: info: Select 0x7f796f7efd38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f79a4eadad8  length: 1
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940e0  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15101  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15105  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f67cf50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef2b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef3d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '2' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f67ce30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7f5cf8 at line 9150 tab 0x7f796f7f4d70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f7f5cf8 -> 0x7f796f659088 at line 9574 tab 0x7f796f7f4d70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f9150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7f9150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/2 <= X <= breadth_first/2
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7f50b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,2,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,2,-1,1.000000,2,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,2,-1,0.000000,1,2
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 2
my_malloc: info: memory_used: 60856  size: 120
my_free: info: memory_used: 60976  size: -1024
create_sort_index: info: select_cond changes 0x7f796f659088 -> 0x0 at line 20721 tab 0x7f796f7f4d70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 59952  size: -416
my_free: info: memory_used: 59536  size: -120
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef370
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef4c0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7ef600
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '2' AND `destid` = '3' AND `seq` > '0' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f65a8c8 ((`skynet`.`v`.`seq` > 0) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(2, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f7f7150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 53
  dijkstras/2/3 <= X <= dijkstras/2/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
my_malloc: info: memory_used: 51080  size: 8152
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7f50c8 at line 9150 tab 0x7f796f7f4088
make_join_select: info: select_cond changes 0x7f796f7f50c8 -> 0x7f796f7f53c8 at line 9574 tab 0x7f796f7f4088
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7f43c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f7f53c8 -> 0x7f796f7f5a18 at line 22557 tab 0x7f796f7f4088
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,2,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,2,3,-1.000000,0,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,2,3,1.000000,1,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f796f7f5a18 -> 0x0 at line 20721 tab 0x7f796f7f4088
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c370  into  0x7f796f696820  (id: 149 -> 211)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 211)
add_to_locked_mutex: info: inserting 0x7f796f73c430  into  0x7f796f696820  (id: 10 -> 211)
add_to_locked_mutex: info: inserting 0x7f796f73c2b0  into  0x7f79a8fa2900  (id: 212 -> 18)
add_to_locked_mutex: info: inserting 0x7f796f73c2b0  into  0x7f796f696820  (id: 212 -> 211)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
handle_connections_sockets: info: Creating THD for new connection
my_malloc: info: memory_used: 0  size: 1048
add_to_locked_mutex: info: inserting 0x7f798bc85a70  into  0x7f79a8fa2900  (id: 214 -> 18)
my_malloc: info: memory_used: 1048  size: 256
my_malloc: info: memory_used: 1304  size: 16392
create_thread_to_handle_connection: info: creating thread 24
create_thread_to_handle_connection: info: Thread created
my_malloc: info: memory_used: 17696  size: 40
login_connection: info: login_connection called by thread 24
login_connection: info: New connection received on socket
login_connection: info: Host: localhost
acl_authenticate: info: com_change_user_pkt_len=0
my_malloc: info: memory_used: 17736  size: 48
server_mpvio_read_packet: info: client capabilities: 959117
server_mpvio_read_packet: info: client_character_set: 8
my_malloc: info: memory_used: 17784  size: 32
my_malloc: info: memory_used: 17816  size: 264
my_malloc: info: memory_used: 18080  size: 32
my_malloc: info: memory_used: 18112  size: 72
my_malloc: info: memory_used: 18184  size: 40
find_mpvio_user: info: exit: user=dubai, auth_string=*7597A2B75EB40C52D3D17BCE343661868CDCB703, authenticated as=dubaiplugin=mysql_native_password
native_password_authenticate: info: reply read : pkt_len=20
acl_find_proxy_user: info: user=dubai host=localhost ip=(null) authenticated_as=dubai
acl_find_proxy_user: info: user is the same as authenticated_as
acl_authenticate: info: Capabilities: 959117  packet_length: 3221225472  Host: 'localhost'  Login user: 'dubai' Priv_user: 'dubai'  Using password: yes Access: 0  db: 'skynet'
mysql_change_db: info: Use database: skynet
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
ha_commit_trans: info: thd: 0x7f796f695070  option_bits: 2147748608  all: 0
ha_commit_trans: info: all: 0  thd->in_sub_stmt: 0  ha_info: 0x0  is_real_trans: 1
my_malloc: info: memory_used: 18224  size: 8216
my_malloc: info: memory_used: 26440  size: 4120
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
THD::decide_logging_format: info: Query: SET NAMES utf8
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
my_free: info: memory_used: 30560  size: -40
my_free: info: memory_used: 30520  size: -72
my_free: info: memory_used: 30448  size: -32
my_free: info: memory_used: 30416  size: -264
my_free: info: memory_used: 30152  size: -32
my_free: info: memory_used: 30120  size: -48
my_free: info: memory_used: 30072  size: -40
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7f5240
st_select_lex::add_item_to_list: info: Item: 0x7f796f7f6438
my_free: info: memory_used: 30032  size: -1048
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
MDL_context::acquire_lock: info: Adding mdl lock 3 to 3
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f798be92f80  write_set: 0x7f798be92fa0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: (SELECT `nodeID` FROM `db_history` WHERE `version` = '0.0.1' LIMIT 1) UNION (SELECT `prevNodeID` FROM `db_history` WHERE `prevVersion` = '0.0.1' LIMIT 1)
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
my_malloc: info: memory_used: 28984  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
Item_type_holder::join_types: info: become type: 8  len: 20  dec: 0
my_malloc: info: memory_used: 37136  size: 5120
my_malloc: info: memory_used: 42256  size: 984
my_malloc: info: memory_used: 43240  size: 1120
get_new_handler: info: handler created F_UNLCK 2 F_RDLCK 0 F_WRLCK 1
create_tmp_table: info: hidden_field_count: 0
handler::ha_open: info: old m_lock_type: 2 F_UNLCK 2
my_malloc: info: memory_used: 44360  size: 920
heap_create: info: Creating internal (no named) temporary table
heap_create: info: Initializing new table
my_malloc: info: memory_used: 45280  size: 1784
my_free: info: memory_used: 47064  size: -920
my_malloc: info: memory_used: 46144  size: 752

WHERE:(after remove) 0x7f796f7f5b30 (`skynet`.`db_history`.`version` = '0.0.1')
my_malloc: info: memory_used: 46896  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 48496  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f653130 (tree scans)  scans: version
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 0  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadad8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f79a4eadae0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f653130 (ROR scans)  scans: version
get_key_scans_params: info: Returning range plan for key version, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 52552  size: 128
my_malloc: info: memory_used: 52680  size: 8
my_malloc: info: memory_used: 52688  size: 4056
my_free: info: memory_used: 56744  size: -4056
quick range select, key version, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key version
get_best_combination: info: type: 4
my_malloc: info: memory_used: 52688  size: 8152
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7f5b30 at line 9574 tab 0x7f796f7fbb38
my_free: info: memory_used: 60840  size: -128
my_free: info: memory_used: 60712  size: -4056
my_free: info: memory_used: 56656  size: -8

Info about JOIN
db_history        type: ref      q_keys: 2  refs: 1  key: 1  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL

WHERE:(after remove) 0x7f796f7f6d30 (`skynet`.`db_history`.`prevVersion` = '0.0.1')
my_malloc: info: memory_used: 56648  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 58248  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f65e130 (tree scans)  scans: prevVersion
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 1  offset: 1  max_keynr: 3  nod: 0  flag: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b110c5  from: 0x7f798be940e0  length: 1
_mi_search_pos: info: keynr: 2  offset: 1  max_keynr: 3  nod: 0  flag: 1
mi_records_in_range: info: records: 1
check_quick_select: info: Default MRR implementation choosen
print_sel_tree: info: SEL_TREE: 0x7f796f65e130 (ROR scans)  scans: prevVersion
get_key_scans_params: info: Returning range plan for key prevVersion, cost 2.21, records 1
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 62304  size: 128
my_malloc: info: memory_used: 62432  size: 8
my_malloc: info: memory_used: 62440  size: 4056
my_free: info: memory_used: 66496  size: -4056
quick range select, key prevVersion, length: 32
  0.0.1 <= X <= 0.0.1
other_keys: 0x0:
best_access_path: info: Considering ref access on key prevVersion
get_best_combination: info: type: 4
make_join_select: info: select_cond changes 0x0 -> 0x7f796f7f6d30 at line 9574 tab 0x7f796f6613c0
my_free: info: memory_used: 62440  size: -128
my_free: info: memory_used: 62312  size: -4056
my_free: info: memory_used: 58256  size: -8

Info about JOIN
db_history        type: ref      q_keys: 4  refs: 1  key: 2  len: 32
                  select used
                  refs:  0.0.1

JOIN::save_explain_data_intern: info: Select 0x7f796f7f5d38, type (null), message NULL
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f79a4eadacc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b61  from: 0x7f79a4eadacc  length: 5
my_malloc: info: memory_used: 58248  size: 126992
my_malloc: info: memory_used: 185240  size: 126984
do_select: info: 1 records output
JOIN::exec: info: Sending data
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b1  from: 0x7f798be940cc  length: 5
_mi_get_binary_pack_key: info: key: 0x7f79a7b155b5  from: 0x7f798be940d8  length: 1
_mi_get_binary_pack_key: info: key: 0x7f79a7b15b65  from: 0x7f798be940d8  length: 1
heap_write: info: Duplicate key: 0
_mi_get_binary_pack_key: info: key: 0x7f79a7b15bf5  from: 0x7f798be940e0  length: 1
do_select: info: 0 records output
my_free: info: memory_used: 312224  size: -126984
my_malloc: info: memory_used: 185240  size: 8152
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f683f50

Info about JOIN
                  type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
do_select: info: 1 records output
my_free: info: memory_used: 193392  size: -126992
my_free: info: memory_used: 66400  size: -1784
my_free: info: memory_used: 64616  size: -752
my_free: info: memory_used: 63864  size: -1120
my_free: info: memory_used: 62744  size: -5120
my_free: info: memory_used: 57624  size: -984
my_free: info: memory_used: 56640  size: -1600
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
close_thread_tables: info: thd->open_tables: 0x7f798be92e70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7f52b8
st_select_lex::add_item_to_list: info: Item: 0x7f796f7f53d8
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `db`.`version`, `db`.`nodeID` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'breadth_first' AND `origid` = '1' ORDER BY `weight` DESC LIMIT 1
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x1
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0

WHERE:(after remove) 0x7f796f683e30 (multiple equal('breadth_first', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 37136  size: 8152
my_malloc: info: memory_used: 45288  size: 1600
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 46888  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7fd150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f7fd150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 50944  size: 128
my_malloc: info: memory_used: 51072  size: 8
my_malloc: info: memory_used: 51080  size: 4056
my_free: info: memory_used: 55136  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7fbcf8 at line 9150 tab 0x7f796f7fad70
my_malloc: info: memory_used: 51080  size: 8152
make_join_select: info: select_cond changes 0x7f796f7fbcf8 -> 0x7f796f660088 at line 9574 tab 0x7f796f7fad70
SQL_SELECT::test_quick_select: info: records: 3
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
SQL_SELECT::test_quick_select: info: Time to scan table: 5.6
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f653150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=breadth_first.
print_sel_tree: info: SEL_TREE: 0x7f796f653150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 44
  breadth_first/1 <= X <= breadth_first/1
other_keys: 0x0:
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7fb0b0

Info about JOIN
v                 type: ALL      q_keys: 3  refs: 0  key: -1  len: 0
                  quick select used:
                  quick range select, key latch, length: 44
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt 1
my_malloc: info: memory_used: 59232  size: 416

Info about FILESORT
Sortorder: -v.weight
filesort: info: sort_length: 9
my_malloc: info: memory_used: 59648  size: 120
filesort: info: addon_length: 59
my_malloc: info: memory_used: 59768  size: 64
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 59832  size: 1024
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:breadth_first,1,-1)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> breadth_first,1,-1,2.000000,3,3
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,1.000000,2,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> breadth_first,1,-1,0.000000,1,1
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 3
my_malloc: info: memory_used: 60856  size: 184
my_free: info: memory_used: 61040  size: -1024
create_sort_index: info: select_cond changes 0x7f796f660088 -> 0x0 at line 20721 tab 0x7f796f7fad70
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 60016  size: -416
my_free: info: memory_used: 59600  size: -184
my_free: info: memory_used: 59416  size: -64
my_free: info: memory_used: 59352  size: -120
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 55040  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f796f7f5390
st_select_lex::add_item_to_list: info: Item: 0x7f796f7f54e0
st_select_lex::add_item_to_list: info: Item: 0x7f796f7f5620
my_malloc: info: memory_used: 28984  size: 8152
open_temporary_table: info: skip_temporary is set or no temporary tables
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
mysql_execute_command: info: derived: 0  view: 0
check_access: info: db_access: 233257023  want_access: 1
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eabb80  write_set: 0x7f79a4eabba0
lock_tables_check: info: Adding mdl lock 3 to 3
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 2
get_lock_data: info: sql_lock->table_count 2 sql_lock->lock_count 2
lock_external: info: count 2
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
mi_copy_status: info: key_file: 5120  data_file: 150680
THD::decide_logging_format: info: Query: SELECT `version` AS `new_database_version`, `updateJSON` AS `update_step`, `prevVersion` AS `base_database_version` FROM `version_history` AS `v` INNER JOIN `db_history` AS `db` ON `db`.`nodeID` = `v`.`linkid` WHERE `latch` = 'dijkstras' AND `origid` = '1' AND `destid` = '3' AND `seq` > '0' AND `seq` <= '1' ORDER BY `seq` ASC
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
setup_conds: info: convert_const_to_int 0
my_malloc: info: memory_used: 37136  size: 8152

WHERE:(after remove) 0x7f796f661cd8 ((`skynet`.`v`.`seq` > 0) and (`skynet`.`v`.`seq` <= 1) and multiple equal('dijkstras', `skynet`.`v`.`latch`) and multiple equal(1, `skynet`.`v`.`origid`) and multiple equal(3, `skynet`.`v`.`destid`) and multiple equal(`skynet`.`db`.`nodeID`, `skynet`.`v`.`linkid`))
my_malloc: info: memory_used: 45288  size: 1600
my_malloc: info: memory_used: 46888  size: 8152
SQL_SELECT::test_quick_select: info: records: 3
SQL_SELECT::test_quick_select: info: Time to scan table: 1e9
my_malloc: info: memory_used: 55040  size: 4056
print_sel_tree: info: SEL_TREE: 0x7f796f7fd150 (tree scans)  scans: latch,latch_2
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=0
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
check_quick_select: oq-debug: thd: 0x7f796f695070; records_in_range ::>> inx=1
check_quick_select: oq-debug: records_in_range ::>> key0=dijkstras.
check_quick_select: oq-debug: records_in_range ::>> N=10
print_sel_tree: info: SEL_TREE: 0x7f796f7fd150 (ROR scans)  scans: (empty)
get_key_scans_params: info: Returning range plan for key latch, cost 3.01, records 10
SQL_SELECT::test_quick_select: info: No range reads possible, trying to construct index_merge
my_malloc: info: memory_used: 59096  size: 128
my_malloc: info: memory_used: 59224  size: 8
my_malloc: info: memory_used: 59232  size: 4056
my_free: info: memory_used: 63288  size: -4056
quick range select, key latch, length: 53
  dijkstras/1/3 <= X <= dijkstras/1/3
other_keys: 0x0:
best_access_path: info: Considering ref access on key nodeID
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key latch
best_access_path: info: Considering ref access on key latch_2
best_access_path: info: Considering ref access on key nodeID
get_best_combination: info: type: 4
get_best_combination: info: type: 4
add_not_null_conds: info: select_cond changes 0x0 -> 0x7f796f7fb5b0 at line 9150 tab 0x7f796f7fa288
make_join_select: info: select_cond changes 0x7f796f7fb5b0 -> 0x7f796f7fb8c0 at line 9574 tab 0x7f796f7fa288
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f796f7fa5c8
my_free: info: memory_used: 59232  size: -128
my_free: info: memory_used: 59104  size: -4056
my_free: info: memory_used: 55048  size: -8

Info about JOIN
v                 type: ref      q_keys: 3  refs: 3  key: 0  len: 53
                  select used
                  refs:  dijkstras  ???  ???
db                type: ref      q_keys: 8  refs: 1  key: 3  len: 8
                  select used
                  refs:  skynet.v.linkid

my_malloc: info: memory_used: 55040  size: 8152
add_ref_to_table_cond: info: select_cond changes 0x7f796f7fb8c0 -> 0x7f796f7fbf10 at line 22557 tab 0x7f796f7fa288
JOIN::save_explain_data_intern: info: Select 0x7f796f699480, type (null), message NULL
JOIN::exec: info: Sorting for send_result_set_metadata
JOIN::exec: info: Sorting for order by/group by
JOIN::exec: info: has_group_by 0 curr_join->table_count 2 curr_join->m_select_limit -1 unit->select_limit_cnt -1
my_malloc: info: memory_used: 63192  size: 416
my_malloc: info: memory_used: 63608  size: 128
my_malloc: info: memory_used: 63736  size: 8
my_malloc: info: memory_used: 63744  size: 4056

Info about FILESORT
Sortorder: v.seq
filesort: info: sort_length: 9
my_malloc: info: memory_used: 67800  size: 144
filesort: info: addon_length: 67
my_malloc: info: memory_used: 67944  size: 72
check_if_pq_applicable: info: No LIMIT
filesort: info: filesort PQ is not applicable
my_malloc: info: memory_used: 68016  size: 1144
init_io_cache: info: init_io_cache: cachesize = 65536
find_all_keys: info: using: ranges
column_bitmaps_signal: info: read_set: 0x7f79a4eb47e0  write_set: 0x7f79a4eb47e0
handler::ha_index_read_map: oq-debug: thd: 0x7f796f695070; index_read_idx()
handler::ha_index_read_map: oq-debug: index_read_idx ::>> search(latch:dijkstras,1,3)
handler::ha_index_read_map: oq-debug: search() = 0
handler::ha_index_read_map: oq-debug: fill_record() ::>> dijkstras,1,3,-1.000000,0,1
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,1,2
handler::multi_range_read_next: oq-debug: fill_record() ::>> dijkstras,1,3,1.000000,2,3
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
find_all_keys: info: find_all_keys return 1
my_malloc: info: memory_used: 69160  size: 72
my_free: info: memory_used: 69232  size: -1144
my_free: info: memory_used: 68088  size: -128
my_free: info: memory_used: 67960  size: -4056
my_free: info: memory_used: 63904  size: -8
create_sort_index: info: select_cond changes 0x7f796f7fbf10 -> 0x0 at line 20721 tab 0x7f796f7fa288
JOIN::exec: info: Sending data
init_read_record: info: using record_pointers
my_free: info: memory_used: 63896  size: -416
my_free: info: memory_used: 63480  size: -72
my_free: info: memory_used: 63408  size: -72
my_free: info: memory_used: 63336  size: -144
mi_update_status: info: updating status:  key_file: 5120  data_file: 150680  rows: 3
mi_update_status: info: invalidator... './skynet/db_history' (status update)
mi_lock_database: info: changed: 0  w_locks: 0
mi_restore_status: info: key_file: 5120  data_file: 150680
mi_lock_database: info: changed: 0  w_locks: 0
do_select: info: 1 records output
my_free: info: memory_used: 63192  size: -1600
handle_select: info: res: 0  report_error: 0
close_thread_tables: info: thd->open_tables: 0x7f79a4eaba70
close_thread_table: info: Adding mdl lock 1 to 3
close_thread_table: info: Adding mdl lock 1 to 3
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798bf71a00
MDL_context::release_locks_stored_before: info: found lock to release ticket=0x7f798b754d40
dispatch_command: info: query ready
net_send_eof: info: EOF sent, so no more error sending allowed
my_free: info: memory_used: 61592  size: -8152
my_free: info: memory_used: 53440  size: -8152
my_free: info: memory_used: 45288  size: -8152
my_free: info: memory_used: 37136  size: -8152
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
dispatch_command: info: query ready
net_send_ok: info: affected_rows: 0  id: 0  status: 2  warning_count: 0
net_send_ok: info: OK sent, so no more error sending allowed
do_command: info: Command on socket = 12 (Kill)
dispatch_command: info: command: 12
add_to_locked_mutex: info: inserting 0x7f798bfb1430  into  0x7f79a8fa2900  (id: 149 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bfb1430  into  0x7f796f696820  (id: 149 -> 214)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f79a8fa2900  (id: 12 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bfb14f0  into  0x7f79a8fa2900  (id: 10 -> 18)
add_to_locked_mutex: info: inserting 0x7f79927e94f0  into  0x7f796f696820  (id: 12 -> 214)
add_to_locked_mutex: info: inserting 0x7f798bfb14f0  into  0x7f796f696820  (id: 10 -> 214)
add_to_locked_mutex: info: inserting 0x7f798bfb1370  into  0x7f79a8fa2900  (id: 215 -> 18)
add_to_locked_mutex: info: inserting 0x7f798bfb1370  into  0x7f796f696820  (id: 215 -> 214)
my_malloc: info: memory_used: 28984  size: 2008
trans_rollback: info: clearing SERVER_STATUS_IN_TRANS
my_free: info: memory_used: 30992  size: -256
my_free: info: memory_used: 30736  size: -16392
~THD(): info: freeing security context
my_free: info: memory_used: 14344  size: -4120
my_free: info: memory_used: 10224  size: -8216
my_free: info: memory_used: 2008  size: -2008
do_command: info: Command on socket = 3 (Query)
dispatch_command: info: command: 3
st_select_lex::add_item_to_list: info: Item: 0x7f798bc88138
open_temporary_table: info: skip_temporary is set or no temporary tables
mysql_execute_command: info: derived: 0  view: 0
MDL_context::acquire_lock: info: Got lock without waiting
column_bitmaps_signal: info: read_set: 0x7f79a4eb4780  write_set: 0x7f79a4eb47a0
lock_tables_check: info: Adding mdl lock 3 to 3
get_lock_data: info: count 1
get_lock_data: info: sql_lock->table_count 1 sql_lock->lock_count 1
lock_external: info: count 1
mi_get_status: info: name: ./skynet/db_history.MYI  key_file: 5120  data_file: 150680  rows: 3  concurrent_insert: 0
THD::decide_logging_format: info: Query: SELECT * FROM version_history
THD::decide_logging_format: info: variables.binlog_format: 1
THD::decide_logging_format: info: lex->get_stmt_unsafe_flags(): 0x0
THD::decide_logging_format: info: decision: no logging since mysql_bin_log.is_open() = 0 and (options & OPTION_BIN_LOG) = 0x40000 and binlog_format = 1 and binlog_filter->db_ok(db) = 1
Field_iterator_table_ref::set_field_iterator: info: field_it for 'version_history' is Field_iterator_table
setup_fields: info: thd->mark_used_columns: 1
setup_fields: info: thd->mark_used_columns: 1
setup_conds: info: thd->mark_used_columns: 1
my_malloc: info: memory_used: 28984  size: 8152
get_best_combination: info: type: 0
make_join_select: info: select_cond changes 0x0 -> 0x0 at line 9599 tab 0x7f798bf6a088

Info about JOIN
version_history   type: ALL      q_keys: 0  refs: 0  key: -1  len: 0
                  select used

JOIN::save_explain_data_intern: info: Select 0x7f798b7fc480, type (null), message NULL
JOIN::exec: info: Sending data
init_read_record: info: using rr_sequential
init_io_cache: info: init_io_cache: cachesize = 131072
141101 20:25:44 [ERROR] mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.

To report this bug, see http://kb.askmonty.org/en/reporting-bugs

We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.

Server version: 10.1.1-MariaDB-wsrep-debug
key_buffer_size=134217728
read_buffer_size=131072
max_used_connections=3
max_threads=153
thread_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467303 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0x7f798b7f8070
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x7f79a7b61df8 thread_stack 0x48000
/usr/libexec/mysqld(my_print_stacktrace+0x2b)[0x7f79a8707d12]
/usr/libexec/mysqld(handle_fatal_signal+0x2db)[0x7f79a818d945]
/lib64/libpthread.so.0(+0xfc80)[0x7f79a77c7c80]
/usr/libexec/mysqld(_ZN7handler11ha_rnd_nextEPh+0x153)[0x7f79a8193559]
/usr/lib64/mysql/plugin/ha_oqgraph.so(_ZN8oqgraph36cursor7seek_toEN5boost8optionalIyEES3_+0xe38)[0x7f798c1e650a]
/usr/lib64/mysql/plugin/ha_oqgraph.so(_ZN8oqgraph313edge_iterator4seekEv+0xe9)[0x7f798c1e3fc9]
/usr/lib64/mysql/plugin/ha_oqgraph.so(_ZN8oqgraph313edge_iteratorneERKS0_+0x2e)[0x7f798c1e4144]
/usr/lib64/mysql/plugin/ha_oqgraph.so(_ZN10open_query12edges_cursor9fetch_rowERKNS_3rowERS1_+0xc0)[0x7f798c1d9126]
/usr/lib64/mysql/plugin/ha_oqgraph.so(_ZN10open_query7oqgraph9fetch_rowERNS_3rowE+0x1d)[0x7f798c1d9b9f]
/usr/lib64/mysql/plugin/ha_oqgraph.so(_ZN10ha_oqgraph8rnd_nextEPh+0x32)[0x7f798c1d841a]
/usr/libexec/mysqld(_ZN7handler11ha_rnd_nextEPh+0x102)[0x7f79a8193508]
/usr/libexec/mysqld(_Z13rr_sequentialP11READ_RECORD+0x47)[0x7f79a82ae652]
/usr/libexec/mysqld(_Z21join_init_read_recordP13st_join_table+0x8c)[0x7f79a80205e4]
/usr/libexec/mysqld(_Z10sub_selectP4JOINP13st_join_tableb+0x19e)[0x7f79a80207bb]
/usr/libexec/mysqld(+0x4363bd)[0x7f79a80303bd]
/usr/libexec/mysqld(_ZN4JOIN10exec_innerEv+0x2937)[0x7f79a8045b4b]
/usr/libexec/mysqld(_ZN4JOIN4execEv+0x63)[0x7f79a804613b]
/usr/libexec/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x7ff)[0x7f79a8042a8b]
/usr/libexec/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x153)[0x7f79a8042cb6]
/usr/libexec/mysqld(+0x3e3f97)[0x7f79a7fddf97]
/usr/libexec/mysqld(_Z21mysql_execute_commandP3THD+0xc64)[0x7f79a7fe49bb]
/usr/libexec/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x186)[0x7f79a7fee726]
/usr/libexec/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0xdd0)[0x7f79a7ff0528]
/usr/libexec/mysqld(_Z10do_commandP3THD+0x784)[0x7f79a7ff284c]
/usr/libexec/mysqld(_Z24do_handle_one_connectionP3THD+0x165)[0x7f79a80cd0bd]
/usr/libexec/mysqld(handle_one_connection+0x40)[0x7f79a80cd29d]
/lib64/libpthread.so.0(+0x80d2)[0x7f79a77c00d2]
/lib64/libc.so.6(clone+0x6d)[0x7f79a57bff6d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f798bc88088): is an invalid pointer
Connection ID (thread ID): 2
Status: NOT_KILLED

Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.'
