Implement basic node.js binding (not published on npm yet)

This commit is contained in:
Vitaliy Filippov
2024-07-14 10:58:38 +03:00
parent 26426dd95e
commit a4dfc220ab
14 changed files with 1187 additions and 23 deletions
+1 -1
View File
@@ -303,7 +303,7 @@ void kv_fs_state_t::init(nfs_proxy_t *proxy, json11::Json cfg)
// Open DB and wait
int open_res = 0;
bool open_done = false;
proxy->db = new kv_dbw_t(proxy->cli);
proxy->db = new vitastorkv_dbw_t(proxy->cli);
std::map<std::string, std::string> kv_cfg;
for (auto & kv: cfg.object_items())
{
+1 -1
View File
@@ -51,7 +51,7 @@ public:
epoll_manager_t *epmgr = NULL;
cluster_client_t *cli = NULL;
cli_tool_t *cmd = NULL;
kv_dbw_t *db = NULL;
vitastorkv_dbw_t *db = NULL;
kv_fs_state_t *kvfs = NULL;
block_fs_state_t *blockfs = NULL;