Add the key to the DB. It's up to the caller to increment the reference * counter of the value if needed. * * The program is aborted if the key already exists. */
| 310 | * |
| 311 | * The program is aborted if the key already exists. */ |
| 312 | void dbAdd(redisDb *db, robj *key, robj *val) |
| 313 | { |
| 314 | bool fInserted = dbAddCore(db, szFromObj(key), val, true /* fUpdateMvcc */); |
| 315 | serverAssertWithInfo(NULL,key,fInserted); |
| 316 | } |
| 317 | |
| 318 | void redisDb::dbOverwriteCore(redisDb::iter itr, sds keySds, robj *val, bool fUpdateMvcc, bool fRemoveExpire) |
| 319 | { |
no test coverage detected