Skip to content

Commit

Permalink
clean-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxianrong committed Mar 13, 2024
1 parent 28b2057 commit 88d0b10
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
11 changes: 8 additions & 3 deletions pikatests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# clear the log file
function cleanup() {
rm -rf ./log
rm -rf db
rm -rf ./log[0-9]*
rm -rf ./db[0-9]*
rm -rf dbsync/
rm src/redis-server
}
Expand Down Expand Up @@ -70,4 +70,9 @@ if [ $? -ne 0 ]; then
cleanup
exit 1
fi
cleanup

# You can use './pikatests.sh all clean 'to ensure that the
# data can be deleted immediately after the test
if [ "$2" == "clean" ]; then
cleanup
fi
12 changes: 9 additions & 3 deletions tests/assets/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ thread-pool-size : 12
slow-cmd-thread-pool-size : 4

# Slow cmd list e.g. hgetall, mset
# slow-cmd-list :
slow-cmd-list :

# The number of sync-thread for data replication from master, those are the threads work on slave nodes
# and are used to execute commands sent from master node when replicating.
Expand Down Expand Up @@ -79,7 +79,7 @@ requirepass :
# [NOTICE] The value of this parameter must match the "requirepass" setting on the master.
masterauth :

# The [password of user], which is empty by default.(Deprecated)
# The [password of user], which is empty by default.
# [NOTICE] If this user password is the same as admin password (including both being empty),
# the value of this parameter will be ignored and all users are considered as administrators,
# in this scenario, users are not subject to the restrictions imposed by the userblacklist.
Expand All @@ -91,7 +91,7 @@ masterauth :
# [Advice] It's recommended to add high-risk commands to this list.
# [Format] Commands should be separated by ",". For example: FLUSHALL, SHUTDOWN, KEYS, CONFIG
# By default, this list is empty.
userblacklist :
# userblacklist :

# Running Mode of Pika, The current version only supports running in "classic mode".
# If set to 'classic', Pika will create multiple DBs whose number is the value of configure item "databases".
Expand Down Expand Up @@ -341,6 +341,12 @@ max-bytes-for-level-multiplier : 10
# slotmigrate [yes | no]
slotmigrate : no

# slotmigrate thread num
slotmigrate-thread-num : 8

# thread-migrate-keys-num 1/8 of the write_buffer_size_
thread-migrate-keys-num : 64

# BlockBasedTable block_size, default 4k
# block-size: 4096

Expand Down

0 comments on commit 88d0b10

Please sign in to comment.