-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace dict with hashtable in kvstore and db
* Add functions for embedding key and expire in robj (object.c) * Always embed key in robj * Embed expire in robj, only if needed or if there is unused space in the allocation * Update db functions (db.c) * dbAdd, setKey and setExpire return the reallocated object with embedded key * setKey does not increment the reference counter, since it would require duplicating the object * Handle dbAdd and dbReplaceValue return value * Replace dict in kvstore * defrag * Fix some things including MOVE, RENAME commands * Fix test case "expire scan should skip dictionaries with lot's of empty buckets" * Fix resize allowed maxmemory check * Fix kvstore unit tests * Fix maxmemory test (increase size) * Delete test cases about shared integers * Scan single step in active expire * Seed hashtable hash function on startup * Set resize policy when a fork is active, and fix test case * Fix rehashing test case in unit/info suite * Fix more resize test cases in unit/other * Fix scan testcases not expecting duplicates * Another run at the unit/expire test suite * Fix typo in defrag pubsub channels * Make dbAddRDBLoad return the (maybe reallocated) object * Add unit test file test_object.c * Account for scan duplicates in valkey-cli test * Optimize INCR (can't use shared object) * Remove code for shared integer objects (When key is embedded in object, all objects in the database need to be unique so we can't use shared objects as values.) Signed-off-by: Viktor Söderqvist <[email protected]>
- Loading branch information
1 parent
e555504
commit 031960b
Showing
39 changed files
with
1,529 additions
and
1,554 deletions.
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
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.