Add on_ready(), get_min_io_size(), get_max_atomic_write_size() to the node.js binding

This commit is contained in:
Vitaliy Filippov
2025-02-06 01:35:48 +03:00
parent 069808dfce
commit 6fd831a299
5 changed files with 69 additions and 3 deletions
+8
View File
@@ -222,6 +222,14 @@ int vitastor_c_is_ready(vitastor_c *client)
return client->cli->is_ready();
}
void vitastor_c_on_ready(vitastor_c *client, VitastorIOHandler cb, void *opaque)
{
client->cli->on_ready([=]()
{
cb(opaque, 0);
});
}
void vitastor_c_uring_wait_ready(vitastor_c *client)
{
while (!client->cli->is_ready())