Use rdbLoadType() to load a TYPE in RDB format, but returns -1 if the * type is not specifically a valid Object Type. */
| 718 | /* Use rdbLoadType() to load a TYPE in RDB format, but returns -1 if the |
| 719 | * type is not specifically a valid Object Type. */ |
| 720 | int rdbLoadObjectType(rio *rdb) { |
| 721 | int type; |
| 722 | if ((type = rdbLoadType(rdb)) == -1) return -1; |
| 723 | if (!rdbIsObjectType(type)) return -1; |
| 724 | return type; |
| 725 | } |
| 726 | |
| 727 | /* This helper function serializes a consumer group Pending Entries List (PEL) |
| 728 | * into the RDB file. The 'nacks' argument tells the function if also persist |
no test coverage detected