Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5441

Thread.current[:session] is not prefixed

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 8.1.0, 8.0.3
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible

      When Mongoid uses thread-local storage it prefixes the key names with [mongoid], except for :session which for some reason is not prefixed:

      lib/mongoid/threaded.rb:      Thread.current[:session] = session
      lib/mongoid/threaded.rb:      Thread.current[:session]
      lib/mongoid/threaded.rb:      Thread.current[:session] = nil
      

      These should be prefixed like all the other thread-local keys.

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: