--source include/have_rocksdb.inc

CREATE TABLE t1 (pk INT, PRIMARY KEY (pk)) ENGINE=ROCKSDB;

SET rocksdb_bulk_load_allow_unsorted=1;
SET rocksdb_bulk_load=1;

INSERT INTO t1 VALUES (1);

--connect (con1,localhost,root,,)
DROP TABLE t1;

--connection default
--disconnect con1

# This would have crashed the server prior to the fix
SET rocksdb_bulk_load=0;
--error ER_NO_SUCH_TABLE
SELECT * FROM t1;
