Return the current size of the AOF rewrite buffer. */
| 77 | |
| 78 | /* Return the current size of the AOF rewrite buffer. */ |
| 79 | unsigned long aofRewriteBufferSize(void) { |
| 80 | listNode *ln; |
| 81 | listIter li; |
| 82 | unsigned long size = 0; |
| 83 | |
| 84 | listRewind(server.aof_rewrite_buf_blocks,&li); |
| 85 | while((ln = listNext(&li))) { |
| 86 | aofrwblock *block = listNodeValue(ln); |
| 87 | size += block->used; |
| 88 | } |
| 89 | return size; |
| 90 | } |
| 91 | |
| 92 | /* Event handler used to send data to the child process doing the AOF |
| 93 | * rewrite. We send pieces of our AOF differences buffer so that the final |
no test coverage detected