File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2989,6 +2989,7 @@ void redisDbPersistentData::processChangesAsync(std::atomic<int> &pendingJobs)
2989
2989
dict *dictNew = dictCreate (&dbDictType, nullptr );
2990
2990
std::swap (dictNew, m_pdict);
2991
2991
m_cnewKeysPending = 0 ;
2992
+ m_numexpires = 0 ;
2992
2993
g_pserver->asyncworkqueue ->AddWorkFunction ([dictNew, this , &pendingJobs]{
2993
2994
dictIterator *di = dictGetIterator (dictNew);
2994
2995
dictEntry *de;
Original file line number Diff line number Diff line change @@ -2865,6 +2865,12 @@ class rdbAsyncWorkThread
2865
2865
2866
2866
size_t endWork () {
2867
2867
if (!fLaunched ) {
2868
+ for (int idb = 0 ; idb < cserver.dbnum ; ++idb) {
2869
+ if (g_pserver->m_pstorageFactory ) {
2870
+ g_pserver->db [idb]->processChangesAsync (cstorageWritesInFlight);
2871
+ }
2872
+ }
2873
+ while (cstorageWritesInFlight > 0 );
2868
2874
return ckeysLoaded;
2869
2875
}
2870
2876
if (!vecbatch.empty ()) {
You can’t perform that action at this time.
0 commit comments