source suite/rocksdb_hotbackup/include/setup.inc;
source suite/rocksdb_hotbackup/include/setup_slocket.inc;

--exec suite/rocksdb_hotbackup/include/load_data.sh 2>&1
--exec suite/rocksdb_hotbackup/include/load_data_slocket.sh 2>&1

--let $rpl_server_number= 2
--source include/rpl_stop_server.inc

--exec suite/rocksdb_hotbackup/include/stream_run.sh 2>&1

--let $rpl_server_number= 2
--source include/rpl_start_server.inc

connection server_2;
select count(*) from db1.t1;
select count(*) from slocket.t1;

connection server_1;
drop database slocket;
connection server_2;
drop database db1;
drop database slocket;

--exec sleep 2
--exec suite/rocksdb_hotbackup/include/create_slocket_socket.sh 2>&1

--let $rpl_server_number= 2
--source include/rpl_stop_server.inc

--exec suite/rocksdb_hotbackup/include/stream_run.sh 2>&1

--let $rpl_server_number= 2
--source include/rpl_start_server.inc

connection server_2;
select count(*) from db1.t1;

connection server_1;
drop database db1;
connection server_2;
drop database db1;

--exec suite/rocksdb_hotbackup/include/remove_slocket_socket.sh 2>&1

source suite/rocksdb_hotbackup/include/cleanup.inc;
