| 8 | #include "../../../util/arr.h" |
| 9 | |
| 10 | static void _RdbSaveAttributeKeys |
| 11 | ( |
| 12 | RedisModuleIO *rdb, |
| 13 | GraphContext *gc |
| 14 | ) { |
| 15 | /* Format: |
| 16 | * #attribute keys |
| 17 | * attribute keys |
| 18 | */ |
| 19 | |
| 20 | uint count = GraphContext_AttributeCount(gc); |
| 21 | RedisModule_SaveUnsigned(rdb, count); |
| 22 | for(uint i = 0; i < count; i ++) { |
| 23 | char *key = gc->string_mapping[i]; |
| 24 | RedisModule_SaveStringBuffer(rdb, key, strlen(key) + 1); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | static inline void _RdbSaveFullTextIndexData |
| 29 | ( |
no test coverage detected