Home
last modified time | relevance | path

Searched refs:dbid (Results 1 – 9 of 9) sorted by relevance

/redis-3.2.3/src/
H A Dnotify.c95 void notifyKeyspaceEvent(int type, char *event, robj *key, int dbid) { in notifyKeyspaceEvent() argument
109 len = ll2string(buf,sizeof(buf),dbid); in notifyKeyspaceEvent()
121 if (len == -1) len = ll2string(buf,sizeof(buf),dbid); in notifyKeyspaceEvent()
H A Dredis-check-rdb.c177 uint64_t dbid; in redis_check_rdb() local
237 if ((dbid = rdbLoadLen(&rdb,NULL)) == RDB_LENERR) in redis_check_rdb()
239 rdbCheckInfo("Selecting DB ID %d", dbid); in redis_check_rdb()
H A Dmulti.c284 void touchWatchedKeysOnFlush(int dbid) { in touchWatchedKeysOnFlush() argument
299 if (dbid == -1 || wk->db->id == dbid) { in touchWatchedKeysOnFlush()
H A Dserver.c673 void tryResizeHashTables(int dbid) { in tryResizeHashTables() argument
674 if (htNeedsResize(server.db[dbid].dict)) in tryResizeHashTables()
675 dictResize(server.db[dbid].dict); in tryResizeHashTables()
676 if (htNeedsResize(server.db[dbid].expires)) in tryResizeHashTables()
677 dictResize(server.db[dbid].expires); in tryResizeHashTables()
687 int incrementallyRehash(int dbid) { in incrementallyRehash() argument
689 if (dictIsRehashing(server.db[dbid].dict)) { in incrementallyRehash()
690 dictRehashMilliseconds(server.db[dbid].dict,1); in incrementallyRehash()
694 if (dictIsRehashing(server.db[dbid].expires)) { in incrementallyRehash()
2059 op->dbid = dbid; in redisOpArrayAppend()
[all …]
H A Ddb.c309 void signalFlushedDb(int dbid) { in signalFlushedDb() argument
310 touchWatchedKeysOnFlush(dbid); in signalFlushedDb()
785 long long dbid, expire; in moveCommand() local
796 if (getLongLongFromObject(c->argv[2],&dbid) == C_ERR || in moveCommand()
797 dbid < INT_MIN || dbid > INT_MAX || in moveCommand()
798 selectDb(c,dbid) == C_ERR) in moveCommand()
H A Ddebug.c503 long dbid; in debugCommand() local
507 if (getLongFromObjectOrReply(c, c->argv[2], &dbid, NULL) != C_OK) in debugCommand()
509 if (dbid < 0 || dbid >= server.dbnum) { in debugCommand()
515 dictGetStats(buf,sizeof(buf),server.db[dbid].dict); in debugCommand()
519 dictGetStats(buf,sizeof(buf),server.db[dbid].expires); in debugCommand()
H A Dserver.h676 int argc, dbid, target; member
1179 void touchWatchedKeysOnFlush(int dbid);
1313 void propagate(struct redisCommand *cmd, int dbid, robj **argv, int argc, int flags);
1314 void alsoPropagate(struct redisCommand *cmd, int dbid, robj **argv, int argc, int target);
1387 void notifyKeyspaceEvent(int type, char *event, robj *key, int dbid);
1423 void signalFlushedDb(int dbid);
H A Drdb.c1276 uint32_t dbid; in rdbLoad() local
1335 if ((dbid = rdbLoadLen(&rdb,NULL)) == RDB_LENERR) in rdbLoad()
1337 if (dbid >= (unsigned)server.dbnum) { in rdbLoad()
1344 db = server.db+dbid; in rdbLoad()
H A Dcluster.c4654 long dbid; in migrateCommand() local
4696 getLongFromObjectOrReply(c,c->argv[4],&dbid,NULL) != C_OK) in migrateCommand()
4737 int select = cs->last_dbid != dbid; /* Should we emit SELECT? */ in migrateCommand()
4741 serverAssertWithInfo(c,NULL,rioWriteBulkLongLong(&cmd,dbid)); in migrateCommand()
4868 cs->last_dbid = dbid; in migrateCommand()