Skip to content

Conversation

jihuayu
Copy link
Member

@jihuayu jihuayu commented Dec 19, 2023

I noticed that many people are unaware that they need to run dbsize scan first in order to obtain the "keys num" information.

So I have added the logic: when dbsize scan has not been executed, the INFO command will display a warning to remind the user to run the dbsize scan command.

WARN: DB not scan, run `dbsize scan` command first.
db0:keys=0,expires=0,avg_ttl=0,expired=0

tisonkun
tisonkun previously approved these changes Dec 25, 2023
Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link

sonarqubecloud bot commented Jan 2, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@PragmaTwice PragmaTwice merged commit aaf0faf into apache:unstable Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants