Skip to content

Commit

Permalink
Merge pull request #359 from avm/remove-libmongo-client-usage
Browse files Browse the repository at this point in the history
Remove libmongo-client related code.
  • Loading branch information
blackav authored Oct 11, 2024
2 parents a9e54ea + 32a39f5 commit 9a4f6cb
Show file tree
Hide file tree
Showing 17 changed files with 2 additions and 2,396 deletions.
8 changes: 0 additions & 8 deletions bin/ej-jobs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2026,12 +2026,4 @@ job_server_force_link[] =
ej_bson_parse_string_new,
};

#elif HAVE_LIBMONGO_CLIENT - 0 == 1

void *
job_server_force_link[] =
{
ej_bson_parse_string,
};

#endif
2 changes: 1 addition & 1 deletion include/ejudge/bson_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
struct _bson;
struct _bson_cursor;

// for libmogoc
// for libmongoc
struct _bson_t;
// FIXME: no opaque structure tag for bson_iter_t

Expand Down
6 changes: 0 additions & 6 deletions include/ejudge/common_mongo_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ struct _bson_t;

typedef struct _mongoc_client_t ej_mongo_conn_t;
typedef struct _bson_t ej_bson_t;
#elif HAVE_LIBMONGO_CLIENT - 0 == 1
struct _mongo_sync_connection;
struct _bson;

typedef struct _mongo_sync_connection ej_mongo_conn_t;
typedef struct _bson ej_bson_t;
#else
struct mongo_connection_missing;
struct bson_definition_missing;
Expand Down
Loading

0 comments on commit 9a4f6cb

Please sign in to comment.