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

WiredTiger log wt_off_t lint

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • WT2.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Minor log lint, didn't want to lose it, so creating the ticket.

      278,289d277
      <                                           _
      <               bufsz = conn->log_file_max;
      < src/log/log.c  386  Info 712: Loss of precision (assignment) (long long to
      <     unsigned int)
      <                                                _
      <                       wrlen = bufsz - partial;
      < src/log/log.c  405  Info 712: Loss of precision (assignment) (long long to
      <     unsigned int)
      <                                          _
      <                       wrlen = len - off;
      < src/log/log.c  412  Info 712: Loss of precision (assignment) (long long to
      <     unsigned int)
      

      sue.loverso, you might want to think about getting rid of wt_off_t in the log code, it might make things easier to reason about if you only used that type to/from the underlying disk routines?

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: