-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: floyd supports one key for one data structure #240
Closed
Closed
Changes from 7 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4fc9b57
Complete the multi-key judgment of a pair of simple commands
Mixficsol 21fddc0
Multiple key judgments are added to the remaining four data structures
Mixficsol 6e09141
add string meta-CF
Mixficsol acb52b3
fix merge conflict
Mixficsol b24b938
add redis tcl
Mixficsol 7d44b29
Modify interface commands that operate multiple data types
Mixficsol 5295f09
fix conflict
Mixficsol d3a5973
add enum as type & merge string&meta cf
dingxiaoshuai123 4bce5d9
Merge branch 'floyd-improve' of github.com:Mixficsol/pikiwidb into floyd
dingxiaoshuai123 8fb77bf
change enum name
dingxiaoshuai123 778e78e
Merge pull request #1 from Mixficsol/floyd
Mixficsol 1183a37
Merge branch 'unstable' of github.com:OpenAtomFoundation/pikiwidb int…
Mixficsol 4ae1948
Merge branch 'floyd-improve' of github.com:Mixficsol/pikiwidb into fl…
Mixficsol 14246ac
Changed the policy for RocksDB iterator scanning keys in Meta's CF
Mixficsol 81759ff
change meta cf compaction filter (#3)
dingxiaoshuai123 8be47ed
Added redis latest tcl test
Mixficsol 3d7cc93
feat: add constexpr string (#4)
dingxiaoshuai123 5c2e2df
Merge branch 'unstable' of github.com:OpenAtomFoundation/pikiwidb int…
Mixficsol 2c3ceb9
remove tcl
Mixficsol 24bd514
fix conflict
Mixficsol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/bin/bash | ||
|
||
# clear the log file | ||
function cleanup() { | ||
rm -rf ./log[0-9]* | ||
rm -rf ./db[0-9]* | ||
rm -rf dbsync/ | ||
rm src/redis-server | ||
} | ||
|
||
# check if tcl is installed | ||
function check_tcl { | ||
if [ -z "$(which tclsh)" ]; then | ||
echo "tclsh is not installed" | ||
exit 1 | ||
fi | ||
} | ||
|
||
# handle different build directories. | ||
function setup_build_dir { | ||
BUILD_DIR="./bin" | ||
echo "BUILD_DIR: $BUILD_DIR" | ||
} | ||
|
||
# setup pikiwidb bin and conf | ||
function setup_pika_bin { | ||
PIKIWIDB_BIN="./$BUILD_DIR/pikiwidb" | ||
if [ ! -f "$PIKIWIDB_BIN" ]; then | ||
echo "pikiwidb bin not found" | ||
exit 1 | ||
fi | ||
cp $PIKIWIDB_BIN src/redis-server | ||
cp ./pikiwidb.conf tests/assets/default.conf | ||
} | ||
|
||
|
||
cleanup | ||
|
||
check_tcl | ||
|
||
setup_build_dir | ||
|
||
setup_pika_bin | ||
|
||
echo "run pikiwidb tests $1" | ||
|
||
if [ "$1" == "all" ]; then | ||
tclsh tests/test_helper.tcl --clients 1 | ||
else | ||
tclsh tests/test_helper.tcl --clients 1 --single unit/$1 | ||
fi | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "pikiwidb tests failed" | ||
cleanup | ||
exit 1 | ||
fi | ||
|
||
#if [ "$2" == "clean" ]; | ||
# cleanup | ||
#fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ class CmdRes { | |
kErrOther, | ||
KIncrByOverFlow, | ||
kInvalidCursor, | ||
kmultikey, | ||
}; | ||
|
||
CmdRes() = default; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
删除 map
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done