Load a "type" in RDB format, that is a one byte unsigned integer. * This function is not only used to load object types, but also special * "types" like the end-of-file type, the EXPIRE type, and so forth. */
| 113 | * This function is not only used to load object types, but also special |
| 114 | * "types" like the end-of-file type, the EXPIRE type, and so forth. */ |
| 115 | int rdbLoadType(rio *rdb) { |
| 116 | unsigned char type; |
| 117 | if (rioRead(rdb,&type,1) == 0) return -1; |
| 118 | return type; |
| 119 | } |
| 120 | |
| 121 | /* This is only used to load old databases stored with the RDB_OPCODE_EXPIRETIME |
| 122 | * opcode. New versions of Redis store using the RDB_OPCODE_EXPIRETIME_MS |
no test coverage detected