diff --git a/src/replication.cpp b/src/replication.cpp index 84c0459d6..77fc8a564 100644 --- a/src/replication.cpp +++ b/src/replication.cpp @@ -2157,7 +2157,7 @@ void updateSlavesWaitingBgsave(int bgsaveerr, int type) * Returns if no storage provider is used. */ void saveMasterStatusToStorage(bool fShutdown) { - long long tmp = -1; + long long tmp = LONG_LONG_MAX; if (!g_pserver->m_pstorageFactory || !g_pserver->metadataDb) return; g_pserver->metadataDb->insert("repl-id", 7, g_pserver->replid, sizeof(g_pserver->replid), true); diff --git a/tests/integration/replication-psync-flash.tcl b/tests/integration/replication-psync-flash.tcl index 8438a878c..8aa1ff010 100644 --- a/tests/integration/replication-psync-flash.tcl +++ b/tests/integration/replication-psync-flash.tcl @@ -9,7 +9,7 @@ # reconnect with the master, otherwise just the initial synchronization is # checked for consistency. proc test_psync {descr duration backlog_size backlog_ttl delay cond mdl sdl reconnect} { - start_server [list tags {"repl"} overrides [list storage-provider {flash .rocks.db.m} repl-backlog-size 1m]] { + start_server [list tags {"repl"} overrides [list storage-provider {flash .rocks.db.m} repl-backlog-size 64m]] { start_server [list tags {flash} overrides [list storage-provider {flash ./rocks.db} delete-on-evict no storage-flush-period 10]] { set master [srv -1 client]