See previous function comment. */
| 2698 | |
| 2699 | /* See previous function comment. */ |
| 2700 | int moduleZsetAddFlagsFromCoreFlags(int flags) { |
| 2701 | int retflags = 0; |
| 2702 | if (flags & ZADD_OUT_ADDED) retflags |= REDISMODULE_ZADD_ADDED; |
| 2703 | if (flags & ZADD_OUT_UPDATED) retflags |= REDISMODULE_ZADD_UPDATED; |
| 2704 | if (flags & ZADD_OUT_NOP) retflags |= REDISMODULE_ZADD_NOP; |
| 2705 | return retflags; |
| 2706 | } |
| 2707 | |
| 2708 | /* Add a new element into a sorted set, with the specified 'score'. |
| 2709 | * If the element already exists, the score is updated. |
no outgoing calls
no test coverage detected