fixup! Introduction of cfgmgr
This commit is contained in:
@@ -90,9 +90,9 @@ parseid(const char *dbkey) {
|
||||
}
|
||||
|
||||
/*
|
||||
* strtoul will stops as soon as it doesn't encounder a
|
||||
* non-digit number, so no need to get an extra buffer, copy
|
||||
* the dbkey and add a null byte after the last digit.
|
||||
* strtoul stops as soon as it doesn't encounter a non-digit
|
||||
* number, so no need to get an extra buffer, copy the dbkey
|
||||
* and add a null byte after the last digit.
|
||||
*/
|
||||
id = strtoul(dbkey + idstarts, NULL, 10);
|
||||
ENSURE(id > 0);
|
||||
@@ -124,7 +124,7 @@ cfgmgr_init(void) {
|
||||
}
|
||||
|
||||
/*
|
||||
* Using MDB_NOSYNC as it avoid force disk flush after a
|
||||
* Using MDB_NOSYNC as it avoids force disk flush after a
|
||||
* transaction. It's quicker and in our case we don't need it
|
||||
* as we delete the only link to the inode right away (so disk
|
||||
* corruption doesn't matter: as soon as the process is dead,
|
||||
|
||||
@@ -67,7 +67,7 @@ cfgmgr_setval(const char *name, const cfgmgr_val_t *value);
|
||||
* next elements in the list. When the end of the list is reached,
|
||||
* ISC_R_NOMORE is returned. Calls to cfgmgr_getnextlistval name has
|
||||
* to be made in immediate sequence (without intermediate
|
||||
* cfgmgr_{set,get}val calls) to retreive each list element.
|
||||
* cfgmgr_{set,get}val calls) to retrieve each list element.
|
||||
*/
|
||||
isc_result_t
|
||||
cfgmgr_getnextlistval(cfgmgr_val_t *value);
|
||||
@@ -127,7 +127,7 @@ isc_result_t
|
||||
cfgmgr_close(void);
|
||||
|
||||
/*
|
||||
* Open the top-level clause "name" for reading and writting and
|
||||
* Open the top-level clause "name" for reading and writing and
|
||||
* returns ISC_R_SUCCESS. If the clause "name" is not found, returns
|
||||
* ISC_R_NOTFOUND.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user