Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2220

cleanup time_t usage.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.7.0
    • Component/s: None
    • Labels:
      None

      Description

      WiredTiger treats time_t as an integral type, and it's only guaranteed to be an arithmetic type, plus there's no guarantee the value is represented in any particular way, so arithmetic operations aren't necessarily safe.

      I can't imagine it's a real bug, but it's also an easy change to be safe.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              keith.bostic Keith Bostic
              Reporter:
              keith.bostic Keith Bostic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: