diff --git a/engines/ep/src/linked_list.cc b/engines/ep/src/linked_list.cc index c8feb99916..e2633e7b29 100644 --- a/engines/ep/src/linked_list.cc +++ b/engines/ep/src/linked_list.cc @@ -357,6 +357,7 @@ size_t BasicLinkedList::purgeTombstones( // so next time purge is attempted it will resume from here (the // range lock "blocking" part of the requested seqno range may have // moved/gone) + std::lock_guard writeGuard(getListWriteLock()); pausedPurgePoint = it; } // reached the end of the locked range, stop