MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RM_DefragRedisModuleString

Function RM_DefragRedisModuleString

app/redis-6.2.6/src/module.c:9149–9151  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

9147 * on the Redis side is dropped as soon as the command callback returns).
9148 */
9149RedisModuleString *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.

Callers

nothing calls this directly

Calls 1

activeDefragStringObFunction · 0.85

Tested by

no test coverage detected