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

WiredTiger no longer needs to return non-zero disk sizes

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.9.0, 3.3.9
    • Labels:
      None

      Description

      Michael Cahill, now that SERVER-23795 is resolved, can this code be removed from WiredTiger?

      /*
       * __im_handle_size --
       *      Return the handle's data size.
       */
      static void
      __im_handle_size(WT_FILE_HANDLE_INMEM *im_fh, wt_off_t *sizep)
      {
              /*
               * XXX
               * This function exists as a place for this comment. MongoDB assumes
               * any file with content will have a non-zero size. In memory tables
               * generally are zero-sized, make MongoDB happy.
               */
              *sizep = im_fh->buf.size == 0 ? 1024 : (wt_off_t)im_fh->buf.size;
      }
      

        Attachments

          Activity

            People

            • Assignee:
              david.hows David Hows (Inactive)
              Reporter:
              keith.bostic Keith Bostic
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: