Helper for rewriteStreamObject() that generates a bulk string into the * AOF representing the ID 'id'. */
| 1333 | /* Helper for rewriteStreamObject() that generates a bulk string into the |
| 1334 | * AOF representing the ID 'id'. */ |
| 1335 | int rioWriteBulkStreamID(rio *r,streamID *id) { |
| 1336 | int retval; |
| 1337 | |
| 1338 | sds replyid = sdscatfmt(sdsempty(),"%U-%U",id->ms,id->seq); |
| 1339 | retval = rioWriteBulkString(r,replyid,sdslen(replyid)); |
| 1340 | sdsfree(replyid); |
| 1341 | return retval; |
| 1342 | } |
| 1343 | |
| 1344 | /* Helper for rewriteStreamObject(): emit the XCLAIM needed in order to |
| 1345 | * add the message described by 'nack' having the id 'rawid', into the pending |
no test coverage detected