This commit is contained in:
Wu Jian Ping 2023-03-31 00:32:05 +08:00
parent fed6788fe4
commit 4ddd785bf0
2 changed files with 4 additions and 1 deletions

View File

@ -38,6 +38,9 @@ http {
# set xdb file path # set xdb file path
ip2region_db ip2region.xdb; ip2region_db ip2region.xdb;
# ip2region_db ip2region.xdb vectorIndex;
# ip2region_db ip2region.xdb file;
# ip2region_db ip2region.xdb content;
server { server {
listen 80; listen 80;

View File

@ -13,7 +13,7 @@
#include "xdb_searcher.h" #include "xdb_searcher.h"
// internal function prototype define // internal function prototype define
static inline int read(xdb_searcher_t *, long offset, char *, size_t length); static int read(xdb_searcher_t *, long offset, char *, size_t length);
static inline int xdb_new_base(xdb_searcher_t *xdb, const char *db_path, const xdb_vector_index_t *v_index, const xdb_content_t *c_buffer) { static inline int xdb_new_base(xdb_searcher_t *xdb, const char *db_path, const xdb_vector_index_t *v_index, const xdb_content_t *c_buffer) {
memset(xdb, 0x00, sizeof(xdb_searcher_t)); memset(xdb, 0x00, sizeof(xdb_searcher_t));