Torque
  1. Torque
  2. TORQUE-117

Stopping IDBroker does not clear the cached ids

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 4.0-beta1
    • Component/s: Runtime
    • Labels:
      None

      Description

      The IDBroker.stop() method does not clear the cached ids. This means that if Torque is then restarted with a different database, the ids generated will be wrong. One way to solve this is to add these lines to IDBroker.stop():
      ids.clear();
      quantityStore.clear();
      lastQueryTime.clear();

      There is probably a better way of doing this.

        Activity

        Hide
        Thomas Fox added a comment -

        Patch applied, thanks !

        Show
        Thomas Fox added a comment - Patch applied, thanks !

          People

          • Assignee:
            Thomas Fox
            Reporter:
            Jonathan Purvis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development