Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
eed189ff
"app/vscode:/vscode.git/clone" did not exist on "f4ba635d3c3a4ed750fac32aeaff26cbee0b4d94"
Commit
eed189ff
authored
Mar 13, 2023
by
Vitaly Arbuzov
Browse files
Fix spacing issue and remove invalid comment
parent
f2805b2c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/db.c
View file @
eed189ff
...
...
@@ -377,7 +377,7 @@ robj *dbRandomKey(redisDb *db) {
robj
*
keyobj
;
dict
*
randomDict
=
getRandomDict
(
db
);
de
=
dictGetFairRandomKey
(
randomDict
);
if
(
de
==
NULL
)
return
NULL
;
// TODO consider other non-empty slot buckets.
if
(
de
==
NULL
)
return
NULL
;
key
=
dictGetKey
(
de
);
keyobj
=
createStringObject
(
key
,
sdslen
(
key
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment