Merge pull request #1407 from eeff/v2.4

Pick to 2.4 fix: persist node_count and tag_count to signed number
This commit is contained in:
lxm
2023-07-24 17:33:58 +08:00
committed by GitHub
+2 -2
View File
@@ -54,8 +54,8 @@ static const char *plugin_file = "persistence/plugins.json";
static const char *db_file = "persistence/sqlite.db";
static sqlite3 * global_db = NULL;
pthread_rwlock_t global_rwlock = PTHREAD_RWLOCK_INITIALIZER;
static size_t global_node_count = 0;
static size_t global_tag_count = 0;
static int global_node_count = 0;
static int global_tag_count = 0;
static inline bool ends_with(const char *str, const char *suffix)
{