diff --git a/src/modules/htable/doc/htable_admin.xml b/src/modules/htable/doc/htable_admin.xml index 0493f422567..84f20e7b328 100644 --- a/src/modules/htable/doc/htable_admin.xml +++ b/src/modules/htable/doc/htable_admin.xml @@ -357,7 +357,7 @@ $ kamcmd htable.dump htable autoexpire -time in seconds to delete an item - from a hash table if no update was done to it. If is missing or set + from a hash table if no update was done to it. If it is missing or set to 0, the items won't expire. @@ -793,7 +793,7 @@ sht_print(); Delete the item with the name 'itname' from hash table 'htname'. - This API function equivaluent to '$sht(htname=>itname) = $null'. + This API function is equivalent to '$sht(htname=>itname) = $null'. This function can be used from ANY_ROUTE. @@ -1559,10 +1559,10 @@ kamcmd htable.seti test x[0] 123 ... -# set expire for $sht(test=>x) to 120 secs +# set expire for $sht(test=>x) to 120 secs kamctl rpc htable.setex test x 120 -# set expire for $sht(test=>10) to 120 secs +# set expire for $sht(test=>10) to 120 secs kamctl rpc htable.setex test s:10 120 ... diff --git a/src/modules/htable/ht_db.c b/src/modules/htable/ht_db.c index 1f9dac458c6..db2a52ce8b1 100644 --- a/src/modules/htable/ht_db.c +++ b/src/modules/htable/ht_db.c @@ -648,7 +648,7 @@ int ht_db_save_table(ht_t *ht, str *dbtable) /** - * delete databse table + * delete database table */ int ht_db_delete_records(str *dbtable) {