Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
70a80ef3
Commit
70a80ef3
authored
May 04, 2020
by
antirez
Browse files
Merge branch 'unstable' of github.com:/antirez/redis into unstable
parents
6fe2b523
1aee086a
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
70a80ef3
...
@@ -4281,6 +4281,7 @@ sds genRedisInfoString(const char *section) {
...
@@ -4281,6 +4281,7 @@ sds genRedisInfoString(const char *section) {
"active_defrag_key_misses:%lld
\r\n
"
"active_defrag_key_misses:%lld
\r\n
"
"tracking_total_keys:%lld
\r\n
"
"tracking_total_keys:%lld
\r\n
"
"tracking_total_items:%lld
\r\n
"
"tracking_total_items:%lld
\r\n
"
"tracking_total_prefixes:%lld
\r\n
"
"unexpected_error_replies:%lld
\r\n
"
,
"unexpected_error_replies:%lld
\r\n
"
,
server
.
stat_numconnections
,
server
.
stat_numconnections
,
server
.
stat_numcommands
,
server
.
stat_numcommands
,
...
@@ -4311,6 +4312,7 @@ sds genRedisInfoString(const char *section) {
...
@@ -4311,6 +4312,7 @@ sds genRedisInfoString(const char *section) {
server
.
stat_active_defrag_key_misses
,
server
.
stat_active_defrag_key_misses
,
(
unsigned
long
long
)
trackingGetTotalKeys
(),
(
unsigned
long
long
)
trackingGetTotalKeys
(),
(
unsigned
long
long
)
trackingGetTotalItems
(),
(
unsigned
long
long
)
trackingGetTotalItems
(),
(
unsigned
long
long
)
trackingGetTotalPrefixes
(),
server
.
stat_unexpected_error_replies
);
server
.
stat_unexpected_error_replies
);
}
}
...
...
src/server.h
View file @
70a80ef3
...
@@ -1695,6 +1695,7 @@ void trackingInvalidateKeysOnFlush(int dbid);
...
@@ -1695,6 +1695,7 @@ void trackingInvalidateKeysOnFlush(int dbid);
void
trackingLimitUsedSlots
(
void
);
void
trackingLimitUsedSlots
(
void
);
uint64_t
trackingGetTotalItems
(
void
);
uint64_t
trackingGetTotalItems
(
void
);
uint64_t
trackingGetTotalKeys
(
void
);
uint64_t
trackingGetTotalKeys
(
void
);
uint64_t
trackingGetTotalPrefixes
(
void
);
void
trackingBroadcastInvalidationMessages
(
void
);
void
trackingBroadcastInvalidationMessages
(
void
);
/* List data type */
/* List data type */
...
...
src/tracking.c
View file @
70a80ef3
...
@@ -518,3 +518,8 @@ uint64_t trackingGetTotalKeys(void) {
...
@@ -518,3 +518,8 @@ uint64_t trackingGetTotalKeys(void) {
if
(
TrackingTable
==
NULL
)
return
0
;
if
(
TrackingTable
==
NULL
)
return
0
;
return
raxSize
(
TrackingTable
);
return
raxSize
(
TrackingTable
);
}
}
uint64_t
trackingGetTotalPrefixes
(
void
)
{
if
(
PrefixTable
==
NULL
)
return
0
;
return
raxSize
(
PrefixTable
);
}
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