From: Andreas Schneider Date: Mon, 3 Apr 2023 08:13:18 +0000 (+0200) Subject: lib:ldb:ldb_key_value: Fix code spelling X-Git-Tag: talloc-2.4.1~1128 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=594d6ef444fddde6d3b451df5671bdcd148a644b;p=thirdparty%2Fsamba.git lib:ldb:ldb_key_value: Fix code spelling Best reviewed with: `git show --word-diff`. Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/lib/ldb/ldb_key_value/ldb_kv.c b/lib/ldb/ldb_key_value/ldb_kv.c index 4c153b21c31..875061c98b8 100644 --- a/lib/ldb/ldb_key_value/ldb_kv.c +++ b/lib/ldb/ldb_key_value/ldb_kv.c @@ -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); diff --git a/lib/ldb/ldb_key_value/ldb_kv.h b/lib/ldb/ldb_key_value/ldb_kv.h index ac474b04b4c..7d7fb9d4e9b 100644 --- a/lib/ldb/ldb_key_value/ldb_kv.h +++ b/lib/ldb/ldb_key_value/ldb_kv.h @@ -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. */ diff --git a/lib/ldb/ldb_key_value/ldb_kv_cache.c b/lib/ldb/ldb_key_value/ldb_kv_cache.c index 4a3c9f29020..b1c136d751e 100644 --- a/lib/ldb/ldb_key_value/ldb_kv_cache.c +++ b/lib/ldb/ldb_key_value/ldb_kv_cache.c @@ -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 diff --git a/lib/ldb/ldb_key_value/ldb_kv_index.c b/lib/ldb/ldb_key_value/ldb_kv_index.c index d70e5f619ef..f0234bda970 100644 --- a/lib/ldb/ldb_key_value/ldb_kv_index.c +++ b/lib/ldb/ldb_key_value/ldb_kv_index.c @@ -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: [[...]] -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= 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) { diff --git a/lib/ldb/ldb_key_value/ldb_kv_search.c b/lib/ldb/ldb_key_value/ldb_kv_search.c index 964e1c1aba0..d8e6601ec85 100644 --- a/lib/ldb/ldb_key_value/ldb_kv_search.c +++ b/lib/ldb/ldb_key_value/ldb_kv_search.c @@ -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;