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

mongoc_collection_replace_one missing MONGOC_EXPORT in mongoc-collection.h

    XMLWordPrintable

    Details

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

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: