Lines Matching refs:db
3598 if (dictSize(server.db[j].dict)) return C_ERR; in verifyClusterConfigWithData()
3919 if (dictSize(server.db[0].dict) != 0) { in clusterCommand()
4222 (myself->numslots != 0 || dictSize(server.db[0].dict) != 0)) { in clusterCommand()
4378 if (nodeIsMaster(myself) && dictSize(c->db->dict) != 0) { in clusterCommand()
4456 if ((o = lookupKeyRead(c->db,c->argv[1])) == NULL) { in dumpCommand()
4489 if (!replace && lookupKeyWrite(c->db,c->argv[1]) != NULL) { in restoreCommand()
4518 if (replace) dbDelete(c->db,c->argv[1]); in restoreCommand()
4521 dbAdd(c->db,c->argv[1],obj); in restoreCommand()
4522 if (ttl) setExpire(c->db,c->argv[1],mstime()+ttl); in restoreCommand()
4523 signalModifiedKey(c->db,c->argv[1]); in restoreCommand()
4712 if ((ov[oi] = lookupKeyRead(c->db,c->argv[first_key+j])) != NULL) { in migrateCommand()
4746 expireat = getExpire(c->db,kv[j]); in migrateCommand()
4824 dbDelete(c->db,kv[j]); in migrateCommand()
4825 signalModifiedKey(c->db,kv[j]); in migrateCommand()
5071 lookupKeyRead(&server.db[0],thiskey) == NULL) in getNodeByQuery()