diff --git a/engines/ep/src/linked_list.cc b/engines/ep/src/linked_list.cc index d9f30cc98c..7be3238ceb 100644 --- a/engines/ep/src/linked_list.cc +++ b/engines/ep/src/linked_list.cc @@ -242,6 +242,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