add: much
This commit is contained in:
parent
7b6ee283c6
commit
cbb4ac7a86
15 changed files with 159 additions and 56 deletions
|
|
@ -62,9 +62,16 @@ controller_save(controller *cntrlr, MDB_env *mdb_env)
|
|||
return 1;
|
||||
}
|
||||
|
||||
value.mv_size = sizeof(cntrlr->port);
|
||||
value.mv_data = &cntrlr->port;
|
||||
if(controller_save_single(mdb_txn, mdb_dbi, KEY_META_PORT, value))
|
||||
value.mv_size = sizeof(cntrlr->command_port);
|
||||
value.mv_data = &cntrlr->command_port;
|
||||
if(controller_save_single(mdb_txn, mdb_dbi, KEY_META_COMMAND_PORT, value))
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
value.mv_size = sizeof(cntrlr->discovery_port);
|
||||
value.mv_data = &cntrlr->discovery_port;
|
||||
if(controller_save_single(mdb_txn, mdb_dbi, KEY_META_DISCOVERY_PORT, value))
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue