Skip to content

Commit 501ae47

Browse files
karthyuomKarthick Ariyaratnam (A)
and
Karthick Ariyaratnam (A)
authored
Fix a bug where a temp rdb file with zero bytes is generated in flash mode. (#696)
Co-authored-by: Karthick Ariyaratnam (A) <k00809413@china.huawei.com>
1 parent 6f77a82 commit 501ae47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/replication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3732,7 +3732,7 @@ void syncWithMaster(connection *conn) {
37323732
}
37333733

37343734
/* Prepare a suitable temp file for bulk transfer */
3735-
if (!useDisklessLoad()) {
3735+
if (!useDisklessLoad() && !mi->isRocksdbSnapshotRepl) {
37363736
while(maxtries--) {
37373737
auto dt = std::chrono::system_clock::now().time_since_epoch();
37383738
auto dtMillisecond = std::chrono::duration_cast<std::chrono::milliseconds>(dt);

0 commit comments

Comments
 (0)