| 91 | } |
| 92 | |
| 93 | static inline void _RdbSaveIndexData |
| 94 | ( |
| 95 | RedisModuleIO *rdb, |
| 96 | SchemaType type, |
| 97 | Index idx |
| 98 | ) { |
| 99 | /* Format: |
| 100 | * type |
| 101 | * index data */ |
| 102 | |
| 103 | if(!idx) return; |
| 104 | |
| 105 | // index type |
| 106 | IndexType t = Index_Type(idx); |
| 107 | ASSERT(t == IDX_EXACT_MATCH || t == IDX_FULLTEXT); |
| 108 | |
| 109 | RedisModule_SaveUnsigned(rdb, t); |
| 110 | |
| 111 | if(t == IDX_FULLTEXT) { |
| 112 | _RdbSaveFullTextIndexData(rdb, idx); |
| 113 | } else { |
| 114 | _RdbSaveExactMatchIndex(rdb, type, idx); |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | static void _RdbSaveConstraint |
| 119 | ( |
no test coverage detected