mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 01:01:22 +00:00
No more trailing spaces in Redis source code.
This commit is contained in:
4
src/db.c
4
src/db.c
@ -106,7 +106,7 @@ void dbAdd(redisDb *db, robj *key, robj *val) {
|
||||
* The program is aborted if the key was not already present. */
|
||||
void dbOverwrite(redisDb *db, robj *key, robj *val) {
|
||||
dictEntry *de = dictFind(db->dict,key->ptr);
|
||||
|
||||
|
||||
redisAssertWithInfo(NULL,key,de != NULL);
|
||||
dictReplace(db->dict, key->ptr, val);
|
||||
}
|
||||
@ -831,7 +831,7 @@ int expireIfNeeded(redisDb *db, robj *key) {
|
||||
* the slave key expiration is controlled by the master that will
|
||||
* send us synthesized DEL operations for expired keys.
|
||||
*
|
||||
* Still we try to return the right information to the caller,
|
||||
* Still we try to return the right information to the caller,
|
||||
* that is, 0 if we think the key should be still valid, 1 if
|
||||
* we think the key is expired at this time. */
|
||||
if (server.masterhost != NULL) return now > when;
|
||||
|
Reference in New Issue
Block a user