Skip to content

Commit

Permalink
Fix a bug where a temp rdb file with zero bytes is generated in flash…
Browse files Browse the repository at this point in the history
… mode. (#696)

Co-authored-by: Karthick Ariyaratnam (A) <k00809413@china.huawei.com>
  • Loading branch information
2 people authored and msotheeswaran-sc committed Jul 26, 2023
1 parent 870b0db commit bcb5421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/replication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3733,7 +3733,7 @@ void syncWithMaster(connection *conn) {
}

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

0 comments on commit bcb5421

Please sign in to comment.