Details
-
Technical task
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
If there are no plans to have LevelDB work with partitions, the possibility to partition a table should just be disabled
create table t1 (pk int primary key) engine=LevelDB partition by hash(pk) partitions 2; |
alter table t1 add partition partitions 2; |
mysqld: mysql-5.6-leveldb/storage/leveldb/ha_leveldb.cc:617: virtual int ha_leveldb::open(const char*, int, uint): Assertion `!pk_descr' failed.
|
mysqld got signal 6 ;
|
#9 0xb741b167 in __assert_fail () from /lib/libc.so.6
|
#10 0x0891bbc5 in ha_leveldb::open (this=0xb6a18d90, name=0xaf8a0a1c "./test/t1#P#p0#TMP#", mode=2, test_if_locked=1026) at mysql-5.6-leveldb/storage/leveldb/ha_leveldb.cc:617
|
#11 0x0824dedf in handler::ha_open (this=0xb6a18d90, table_arg=0xb6a58b58, name=0xaf8a0a1c "./test/t1#P#p0#TMP#", mode=2, test_if_locked=1026) at mysql-5.6-leveldb/sql/handler.cc:2421
|
#12 0x08922b1b in ha_partition::prepare_new_partition (this=0xb6a59230, tbl=0xb6a58b58, create_info=0xaf8a275c, file=0xb6a18d90, part_name=0xaf8a0a1c "./test/t1#P#p0#TMP#", p_elem=0xb6a5a010) at mysql-5.6-leveldb/sql/ha_partition.cc:1485
|
#13 0x0892369d in ha_partition::change_partitions (this=0xb6a59230, create_info=0xaf8a275c, path=0xaf8a0d23 "./test/t1", copied=0xaf8a0f80, deleted=0xaf8a0f88, pack_frm_data=0x0, pack_frm_len=0) at mysql-5.6-leveldb/sql/ha_partition.cc:1842
|
#14 0x08252299 in handler::ha_change_partitions (this=0xb6a59230, create_info=0xaf8a275c, path=0xaf8a0d23 "./test/t1", copied=0xaf8a0f80, deleted=0xaf8a0f88, pack_frm_data=0x0, pack_frm_len=0) at mysql-5.6-leveldb/sql/handler.cc:4442
|
#15 0x08557cdf in mysql_change_partitions (lpt=0xaf8a0f7c) at mysql-5.6-leveldb/sql/sql_partition.cc:5769
|
#16 0x0855a7b4 in fast_alter_partition_table (thd=0xa38de80, table=0xb6a58b58, alter_info=0xaf8a270c, create_info=0xaf8a275c, table_list=0xb6a18238, db=0xb6a18600 "test", table_name=0xb6a18210 "t1") at mysql-5.6-leveldb/sql/sql_partition.cc:7133
|
#17 0x0840767a in mysql_alter_table (thd=0xa38de80, new_db=0xb6a18600 "test", new_name=0x0, create_info=0xaf8a275c, table_list=0xb6a18238, alter_info=0xaf8a270c, order_num=0, order=0x0, ignore=false) at mysql-5.6-leveldb/sql/sql_table.cc:7701
|
#18 0x0851d669 in Sql_cmd_alter_table::execute (this=0xb6a18780, thd=0xa38de80) at mysql-5.6-leveldb/sql/sql_alter.cc:313
|
#19 0x083ab94e in mysql_execute_command (thd=0xa38de80) at mysql-5.6-leveldb/sql/sql_parse.cc:4834
|
#20 0x083ae518 in mysql_parse (thd=0xa38de80, rawbuf=0xb6a18168 "alter table t1 add partition partitions 2", length=41, parser_state=0xaf8a3758) at mysql-5.6-leveldb/sql/sql_parse.cc:6097
|
#21 0x083a2efe in dispatch_command (command=COM_QUERY, thd=0xa38de80, packet=0xa42d871 "alter table t1 add partition partitions 2", packet_length=41) at mysql-5.6-leveldb/sql/sql_parse.cc:1312
|
#22 0x083a232e in do_command (thd=0xa38de80) at mysql-5.6-leveldb/sql/sql_parse.cc:1036
|
#23 0x08371ce9 in do_handle_one_connection (thd_arg=0xa38de80) at mysql-5.6-leveldb/sql/sql_connect.cc:969
|
#24 0x08371892 in handle_one_connection (arg=0xa38de80) at mysql-5.6-leveldb/sql/sql_connect.cc:885
|
#25 0x08650707 in pfs_spawn_thread (arg=0xa316660) at mysql-5.6-leveldb/storage/perfschema/pfs.cc:1853
|
#26 0xb776fe32 in start_thread () from /lib/libpthread.so.0
|
revision-id: psergey@askmonty.org-20121221152341-9stvnkuiinslrt9h
|
date: 2012-12-21 19:23:41 +0400
|
build-date: 2012-12-22 01:19:29 +0400
|
revno: 4471
|
branch: mysql-5.6-leveldb
|