-
Notifications
You must be signed in to change notification settings - Fork 578
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
Draft: Namespaces #374
Closed
Closed
Draft: Namespaces #374
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
3c4212f
implemented basic support for namespaces (this only adds support for …
ederuiter b8561cf
implemented database allocation + acl namespace support
ederuiter 25e3744
make sure db allocation is always present when selecting a different …
ederuiter d3cd457
fix debug htstats to work with namespaces
ederuiter eb311cf
make sure fake replication client also has a namespace
ederuiter c8c4828
fix rreplay tests to also include allocate calls (this is needed as i…
ederuiter 9adb05c
added actual namespace switching in ACLAuthenticateUser
ederuiter 4254348
added basic namespace tests
ederuiter 71aa119
Move master initialization out of config parsing; this caused issues …
ederuiter acda6f2
Fix flushall + emptyDbStucture + debug loadaof
ederuiter 9b98faf
Added database mapping + namespace to client list output + added comp…
ederuiter 05b631e
Namespace fixes for rdb/aof/scripting
ederuiter 8434366
redisMaster->staleKeyMap is not always initialized, only delete it wh…
ederuiter c2efd10
added support for ::auto namespace + support for default user namespa…
ederuiter ace526f
forgot to commit generateAutoNamespaceName implementation
ederuiter d0e5165
Added SELECTNS admin command to switch to databases in other namespaces
ederuiter 0f47216
Added last_allocated_db to prevent looping over all databases every time
ederuiter 6cadb8c
Reset last_allocated_db after emptying all databases
ederuiter 160d443
Move script cache to namespace
ederuiter ac5c4e3
Added command stats per namespace + output them in the info command
ederuiter 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
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.
It’s actually a bug in our delete override that makes this unsafe. You should be able to delete a null pointer. We have a fix coming.
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.
Ah that explains it, I came across it when debugging some random memory corruption issues and valgrind pointed to here for an invalid delete.