Skip to content

Commit

Permalink
move replDataBufBlock to replication.c
Browse files Browse the repository at this point in the history
Signed-off-by: naglera <[email protected]>
  • Loading branch information
naglera committed Jul 11, 2024
1 parent cdc3ca8 commit 5e4c13a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions src/replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -2741,6 +2741,13 @@ void replStreamProgressCallback(size_t offset, int readlen, time_t *last_progres
}
}

/* Link list block, used by replDataBuf during rdb-connection sync to store
* replication data */
typedef struct replDataBufBlock {
size_t size, used;
char buf[];
} replDataBufBlock;

/* Replication: Replica side.
* Reads replication data from primary into specified repl buffer block */
int readIntoReplDataBlock(connection *conn, replDataBufBlock *data_block, size_t read) {
Expand Down
7 changes: 0 additions & 7 deletions src/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -940,13 +940,6 @@ typedef struct replBufBlock {
char buf[];
} replBufBlock;

/* Link list block, used by replDataBuf during rdb-connection sync to store
* replication data */
typedef struct replDataBufBlock {
size_t size, used;
char buf[];
} replDataBufBlock;

/* Database representation. There are multiple databases identified
* by integers from 0 (the default database) up to the max configured
* database. The database number is the 'id' field in the structure. */
Expand Down

0 comments on commit 5e4c13a

Please sign in to comment.