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
| 9349 | * on the Redis side is dropped as soon as the command callback returns). |
| 9350 | */ |
| 9351 | RedisModuleString *RM_DefragRedisModuleString(RedisModuleDefragCtx *ctx, RedisModuleString *str) { |
| 9352 | return activeDefragStringOb(str, &ctx->defragged); |
| 9353 | } |
| 9354 | |
| 9355 | |
| 9356 | /* Perform a late defrag of a module datatype key. |
nothing calls this directly
no test coverage detected