Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2756

mongoc_collection_replace_one missing MONGOC_EXPORT in mongoc-collection.h

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.13.0
    • Affects Version/s: 1.9.0
    • Component/s: libmongoc
    • Labels:
    • Environment:
      Issue on Windows as symbol is not available in library.

      The mongoc_collection_replace_one function is not available in the dynamic library for Windows because the MONGOC_EXPORT is missing from the header file ... see below:

       

      MONGOC_EXPORT (bool)
      mongoc_collection_update_many (mongoc_collection_t *collection,
      const bson_t *selector,
      const bson_t *update,
      const bson_t *opts,
      bson_t *reply,
      bson_error_t *error);
      bool
      mongoc_collection_replace_one (mongoc_collection_t *collection,
      const bson_t *selector,
      const bson_t *replacement,
      const bson_t *opts,
      bson_t *reply,
      bson_error_t *error);
      MONGOC_EXPORT (bool)
      mongoc_collection_delete (mongoc_collection_t *collection,
      mongoc_delete_flags_t flags,
      const bson_t *selector,
      const mongoc_write_concern_t *write_concern,
      bson_error_t *error)

            Assignee:
            spencer.mckenney Spencer Mckenney
            Reporter:
            bevolz Bernie Volz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: