1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

lib:ldb:ldb_key_value: Fix code spelling

Best reviewed with: `git show --word-diff`.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2023-04-03 10:13:18 +02:00 committed by Andreas Schneider
parent f75adc4871
commit 594d6ef444
5 changed files with 12 additions and 12 deletions

View File

@ -637,7 +637,7 @@ static int ldb_kv_add_internal(struct ldb_module *module,
* case, which will only fail for a duplicate DN
* in the index add.
*
* Note that the caller may not cancel the transation
* Note that the caller may not cancel the transaction
* and this means the above add might really show up!
*/
ldb_kv_delete_noindex(module, msg);

View File

@ -94,7 +94,7 @@ struct ldb_kv_private {
/*
* To ensure that the indexes in idxptr are consistent we cache any
* index updates during an operation, i.e. ldb_kv_add, ldb_kv_delete ...
* Once the changes to the data record have been commited to disk
* Once the changes to the data record have been committed to disk
* the contents of this cache are copied to idxptr
*/
struct ldb_kv_idxptr *nested_idx_ptr;
@ -202,7 +202,7 @@ struct ldb_kv_repack_context {
/*
* This will be used to indicate when a new, yet to be developed
* sub-database version of the indicies are in use, to ensure we do
* sub-database version of the indices are in use, to ensure we do
* not load future databases unintentionally.
*/

View File

@ -528,7 +528,7 @@ int ldb_kv_cache_load(struct ldb_module *module)
/*
* ltdb_attributes_unload() calls internally talloc_free() on
* any non-fixed elemnts in ldb->schema.attributes.
* any non-fixed elements in ldb->schema.attributes.
*
* NOTE WELL: This is per-ldb, not per module, so overwrites
* the handlers across all databases when used under Samba's

View File

@ -62,7 +62,7 @@ DN=CN=DNSUPDATEPROXY,CN=USERS,DC=ADDOM,DC=SAMBA,DC=EXAMPLE,DC=COM
(This allows a scope BASE search to directly find the record via
a simple casefold of the DN).
The original mixed-case DN is stored in the entry iself.
The original mixed-case DN is stored in the entry itself.
The new 'GUID index' format is:
@ -72,7 +72,7 @@ dn: @INDEX:NAME:DNSUPDATEPROXY
@IDXVERSION: 3
@IDX: <binary GUID>[<binary GUID>[...]]
The binary guid is 16 bytes, as bytes and not expanded as hexidecimal
The binary guid is 16 bytes, as bytes and not expanded as hexadecimal
or pretty-printed. The GUID is chosen from the message to be stored
by the @IDXGUID attribute on @INDEXLIST.
@ -84,7 +84,7 @@ The corrosponding entry is stored in a TDB record with key:
GUID=<binary GUID>
This allows a very quick translation between the fixed-length index
values and the TDB key, while seperating entries from other data
values and the TDB key, while separating entries from other data
in the TDB, should they be unlucky enough to start with the bytes of
the 'DN=' prefix.
@ -1148,7 +1148,7 @@ static struct ldb_dn *ldb_kv_index_key(struct ldb_context *ldb,
}
talloc_free(vstr);
} else {
/* Only need two seperators */
/* Only need two separators */
num_separators = 2;
/*
@ -1197,7 +1197,7 @@ static bool ldb_kv_is_indexed(struct ldb_module *module,
if ((ldb_kv->cache->GUID_index_attribute != NULL) &&
(ldb_attr_cmp(attr, ldb_kv->cache->GUID_index_attribute) == 0)) {
/* Implicity covered, this is the index key */
/* Implicitly covered, this is the index key */
return false;
}
if (ldb->schema.index_handler_override) {
@ -2479,7 +2479,7 @@ static int ldb_kv_index_filter(struct ldb_kv_private *ldb_kv,
ret = ldb_module_send_entry(ac->req, filtered_msg, NULL);
if (ret != LDB_SUCCESS) {
/* Regardless of success or failure, the msg
* is the callbacks responsiblity, and should
* is the callbacks responsibility, and should
* not be talloc_free()'ed */
ac->request_terminated = true;
talloc_free(keys);
@ -2899,7 +2899,7 @@ static int ldb_kv_index_add1(struct ldb_module *module,
}
/* overallocate the list a bit, to reduce the number of
* realloc trigered copies */
* realloc triggered copies */
alloc_len = ((list->count+1)+7) & ~7;
list->dn = talloc_realloc(list, list->dn, struct ldb_val, alloc_len);
if (list->dn == NULL) {

View File

@ -595,7 +595,7 @@ static int ldb_kv_search_and_return_base(struct ldb_kv_private *ldb_kv,
ret = ldb_module_send_entry(ctx->req, filtered_msg, NULL);
if (ret != LDB_SUCCESS) {
/* Regardless of success or failure, the msg
* is the callbacks responsiblity, and should
* is the callbacks responsibility, and should
* not be talloc_free()'ed */
ctx->request_terminated = true;
return ret;