Fix vitastor-nbd image existence check not working because of non-zeroed inode_watch fields

This commit is contained in:
Vitaliy Filippov
2023-12-19 01:11:37 +03:00
parent dc615403d9
commit 7cea642f4a
+6 -6
View File
@@ -61,21 +61,21 @@ struct pool_config_t
struct inode_config_t struct inode_config_t
{ {
uint64_t num; uint64_t num = 0;
std::string name; std::string name;
uint64_t size; uint64_t size = 0;
inode_t parent_id; inode_t parent_id = 0;
bool readonly; bool readonly = false;
// Arbitrary metadata // Arbitrary metadata
json11::Json meta; json11::Json meta;
// Change revision of the metadata in etcd // Change revision of the metadata in etcd
uint64_t mod_revision; uint64_t mod_revision = 0;
}; };
struct inode_watch_t struct inode_watch_t
{ {
std::string name; std::string name;
inode_config_t cfg; inode_config_t cfg = {};
}; };
struct http_co_t; struct http_co_t;