Skip to content
  • Igor Kushnir's avatar
    Prevent using commentRepository() without locking · fad3cfd2
    Igor Kushnir authored and Milian Wolff's avatar Milian Wolff committed
    commentRepository() returned a reference to StringRepository, which
    could be accidentally used directly rather than via the helper function
    commentRepositoryOp() that locks the mutex. Prevent such usage mistakes
    by encapsulating the mutex and the repository in class CommentRepository
    similar to class StaticCacheData in modificationrevision.cpp.
    fad3cfd2