Defrag a RedisModuleString previously allocated by RM_Alloc, RM_Calloc, etc. * See RM_DefragAlloc() for more information on how the defragmentation process * works. * * NOTE: It is only possible to defrag strings that have a single reference. * Typically this means strings retained with RM_RetainString or RM_HoldString * may not be defragmentable. One exception is command argvs which, if ret
| 9147 | * on the Redis side is dropped as soon as the command callback returns). |
| 9148 | */ |
| 9149 | RedisModuleString *RM_DefragRedisModuleString(RedisModuleDefragCtx *ctx, RedisModuleString *str) { |
| 9150 | return activeDefragStringOb(str, &ctx->defragged); |
| 9151 | } |
| 9152 | |
| 9153 | |
| 9154 | /* Perform a late defrag of a module datatype key. |
nothing calls this directly
no test coverage detected