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

wiredtiger_extension_init function error return ignored

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT1.0
    • Component/s: None
    • Labels:

      Description

      __conn_load_extension() calls an entry function (by default wiredtiger_extension_init), which can return an error because in the case of the compressor functions, it calls conn->add_compressor() which allocates memory and can fail.

      I suspect wiredtiger_extension_init (and init functions in general), should return errors, and __conn_load_extension() should check the return of the entry function.

      Sorry to dump this on you, Michael, but I'm not 100% sure if the entry function should just move before the mutex and add to connection's list of libraries, or if the library needs to be linked before the entry function is called?

        Attachments

          Activity

            People

            Assignee:
            michael.cahill Michael Cahill
            Reporter:
            wiredtiger WiredTiger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: