Well, side stuff like tests might not work.
#define LMDB_DIR_MODE 0770
#define LMDB_FILE_MODE 0660
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations" //TODO later, maybe
+
/* TODO: we rely on mirrors of these two structs not changing layout
* in libknot and knot resolver! */
static int lmdb_error(int error)
{
switch (error) {
+#if KR_USE_MDBX
+ // not interested in differentiating this one, for now at least
+ case MDBX_RESULT_TRUE:
+#endif
case MDB_SUCCESS:
return kr_ok();
case MDB_NOTFOUND:
#include "db.h"
#include "lib/cache/cdb_lmdb.h"
+#include "lib/cache/cdb_compat.h"
#include "lib/cache/impl.h"
#include <ctype.h>
knot_db_t ** libknot_db)
{
char cache_data[strlen(cache_path) + 10];
- snprintf(cache_data, sizeof(cache_data), "%s/data.mdb", cache_path);
+ snprintf(cache_data, sizeof(cache_data), "%s" MDB_DATANAME, cache_path);
struct stat st = { 0 };
if (stat(cache_path, &st) || !(st.st_mode & S_IFDIR)
libkres_dep,
libknot,
luajit_inc,
+ cache_backend_dep,
],
install: true,
install_dir: get_option('sbindir'),