Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-3315

Assert after try lock

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • sometime
    • Cache

    Description

      In iocore/cache/Cache.cc there is the following:

        CACHE_TRY_LOCK(lock, cont->mutex, this_ethread());
        ink_assert(lock.is_locked());
      

      Does it really make sense to try and assert when a try can fail?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              psudaemon Phil Sorber
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: