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

WiredTiger no longer needs to return non-zero disk sizes

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • WT2.9.0, 3.3.9
    • Affects Version/s: None
    • Component/s: None
    • None

      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;
      }
      

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

              Created:
              Updated:
              Resolved: