Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4f297537
Unverified
Commit
4f297537
authored
Feb 27, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Feb 27, 2020
Browse files
Merge pull request #6931 from t00350320/unstable
modify the read buf size according to the write buf size PROTO_IOBUF_LEN
parents
37612118
1ab55083
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
4f297537
...
@@ -1352,7 +1352,7 @@ void disklessLoadRestoreBackups(redisDb *backup, int restore, int empty_db_flags
...
@@ -1352,7 +1352,7 @@ void disklessLoadRestoreBackups(redisDb *backup, int restore, int empty_db_flags
/* Asynchronously read the SYNC payload we receive from a master */
/* Asynchronously read the SYNC payload we receive from a master */
#define REPL_MAX_WRITTEN_BEFORE_FSYNC (1024*1024*8)
/* 8 MB */
#define REPL_MAX_WRITTEN_BEFORE_FSYNC (1024*1024*8)
/* 8 MB */
void
readSyncBulkPayload
(
connection
*
conn
)
{
void
readSyncBulkPayload
(
connection
*
conn
)
{
char
buf
[
4096
];
char
buf
[
PROTO_IOBUF_LEN
];
ssize_t
nread
,
readlen
,
nwritten
;
ssize_t
nread
,
readlen
,
nwritten
;
int
use_diskless_load
=
useDisklessLoad
();
int
use_diskless_load
=
useDisklessLoad
();
redisDb
*
diskless_load_backup
=
NULL
;
redisDb
*
diskless_load_backup
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment