Currently we lock the mutex within BucketSaveCb, OnDbChange and OnJournalEntry. A better alternative is to lock it when we actually use the serializer object (for example SaveEntry). This will guarantee that the mutex is always locked when we serialize a big value.
Currently we lock the mutex within BucketSaveCb, OnDbChange and OnJournalEntry. A better alternative is to lock it when we actually use the
serializer
object (for example SaveEntry). This will guarantee that the mutex is always locked when we serialize a big value.