From 94d90d87db99eecb07ea46cd54b05ac247483a9b Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 3 Dec 2019 03:09:51 +0300 Subject: [PATCH] mdbx-test: cleanup pcrf_test from deprecated API. Change-Id: I06bffb666bb0b202c5d18c838d5f06a1d0381b60 --- test/pcrf/pcrf_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/pcrf/pcrf_test.c b/test/pcrf/pcrf_test.c index 90e0e28c..b8a3640d 100644 --- a/test/pcrf/pcrf_test.c +++ b/test/pcrf/pcrf_test.c @@ -105,8 +105,8 @@ static void db_connect() { MDBX_dbi dbi_ip; MDBX_CHECK(mdbx_env_create(&env)); - MDBX_CHECK( - mdbx_env_set_mapsize(env, REC_COUNT * sizeof(session_data_t) * 10)); + MDBX_CHECK(mdbx_env_set_geometry( + env, 0, 0, REC_COUNT * sizeof(session_data_t) * 10, -1, -1, -1)); MDBX_CHECK(mdbx_env_set_maxdbs(env, 30)); MDBX_CHECK(mdbx_env_open(env, opt_db_path, MDBX_CREATE | MDBX_WRITEMAP | MDBX_MAPASYNC | @@ -256,8 +256,8 @@ static void periodic_stat(void) { int64_t ms_leaf_pages = 0; MDBX_stat mst; MDBX_envinfo mei; - MDBX_CHECK(mdbx_env_stat(env, &mst, sizeof(mst))); - MDBX_CHECK(mdbx_env_info(env, &mei, sizeof(mei))); + MDBX_CHECK(mdbx_env_stat_ex(env, NULL, &mst, sizeof(mst))); + MDBX_CHECK(mdbx_env_info_ex(env, NULL, &mei, sizeof(mei))); printf("Environment Info\n"); printf(" Pagesize: %u\n", mst.ms_psize); if (mei.mi_geo.lower != mei.mi_geo.upper) {