]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:ldb:ldb_key_value: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Mon, 3 Apr 2023 08:13:18 +0000 (10:13 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 4 Apr 2023 07:31:36 +0000 (07:31 +0000)
Best reviewed with: `git show --word-diff`.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/ldb_key_value/ldb_kv.c
lib/ldb/ldb_key_value/ldb_kv.h
lib/ldb/ldb_key_value/ldb_kv_cache.c
lib/ldb/ldb_key_value/ldb_kv_index.c
lib/ldb/ldb_key_value/ldb_kv_search.c

index 4c153b21c3190b8dd52e5f22b87b9d244c331833..875061c98b8327218b52ed6678c4bf77563dd0e8 100644 (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);
index ac474b04b4cd65cb959d092ecd02f3404af14384..7d7fb9d4e9baa65edbd448155cbc072f27378894 100644 (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.
  */
 
index 4a3c9f29020ae1e93911bfd4acab2a557db4e4bf..b1c136d751e7200b4b13d3af9176a1f2e79cc1bf 100644 (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
index d70e5f619efc5d95ee5a713d64adb8d3f286cd0f..f0234bda97043c05f1f2cb64559c5f16ff844320 100644 (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) {
index 964e1c1aba0b03a0f30140cffd01d63e3bec375a..d8e6601ec85b86e3161344e427145d7c46509837 100644 (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;