Improper use of map::operator[]

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • Sharding 2021-03-08
    • 58
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      A pin lookup for a request uses operator[] which, as we all know, instantiates a default constructed version of the value type. A successful pin isn't bothered by this default construction (the default constructed value will be overwritten), but a failing pin should leave the key/value non-existent (if that was the pre-state). Failure to do so makes it seem as if there's a pin request when there is none.

            Assignee:
            Daniel Gottlieb (Inactive)
            Reporter:
            Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: