Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-3384

Worker::childChangedStatus may lose child after enqueued

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1.0
    • 3.0.1
    • LiteCore
    • Security Level: Public
    • None
    • 1

    Description

      void Worker::childChangedStatus(Worker *task, const Status &status)

      {      enqueue(FUNCTION_TO_QUEUE(Worker::_childChangedStatus), task, status); }

      W.r.t. the above method, the child, "task" in the argument, may lose RefCount after the method returns. This could cause child "task" invalid when the method, _childChangedStatus, on the parent is dequeued from the mailbox.

       

      Attachments

        Activity

          People

            The Lite The Lite
            jianmin.zhao Jianmin Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty