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
e09b5186
Commit
e09b5186
authored
Mar 08, 2011
by
antirez
Browse files
useless function removed
parent
c5b6f461
Changes
2
Show whitespace changes
Inline
Side-by-side
TODO
View file @
e09b5186
...
@@ -20,6 +20,8 @@ DISKSTORE TODO
...
@@ -20,6 +20,8 @@ DISKSTORE TODO
* Fix DBSIZE to really do something interesting
* Fix DBSIZE to really do something interesting
* Add a DEBUG command to check if an entry is or not in memory currently
* Add a DEBUG command to check if an entry is or not in memory currently
* dscache.c near 236, kobj = createStringObject... we could use static obj.
APPEND ONLY FILE
APPEND ONLY FILE
================
================
...
...
src/dscache.c
View file @
e09b5186
...
@@ -240,13 +240,6 @@ int cacheFreeOneEntry(void) {
...
@@ -240,13 +240,6 @@ int cacheFreeOneEntry(void) {
return
REDIS_OK
;
return
REDIS_OK
;
}
}
/* Return true if it's safe to swap out objects in a given moment.
* Basically we don't want to swap objects out while there is a BGSAVE
* or a BGAEOREWRITE running in backgroud. */
int
dsCanTouchDiskStore
(
void
)
{
return
(
server
.
bgsavechildpid
==
-
1
&&
server
.
bgrewritechildpid
==
-
1
);
}
/* ==================== Disk store negative caching ========================
/* ==================== Disk store negative caching ========================
*
*
* When disk store is enabled, we need negative caching, that is, to remember
* When disk store is enabled, we need negative caching, that is, to remember
...
...
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