summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/gfdb/gfdb_sqlite3.c
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-07-16 17:03:17 +0300
committerAmar Tumballi <amarts@redhat.com>2018-07-22 14:40:16 +0000
commit621138ce763eda8270d0a4f6d7209fd50ada8787 (patch)
tree7299759993f6e9f7f34dad95fc8d8cd6ffc1b2fd /libglusterfs/src/gfdb/gfdb_sqlite3.c
parentc0e76377d0fc47aa66f35ea70a4793731ebbd40c (diff)
All: run codespell on the code and fix issues.
Please review, it's not always just the comments that were fixed. I've had to revert of course all calls to creat() that were changed to create() ... Only compile-tested! Change-Id: I7d02e82d9766e272a7fd9cc68e51901d69e5aab5 updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'libglusterfs/src/gfdb/gfdb_sqlite3.c')
-rw-r--r--libglusterfs/src/gfdb/gfdb_sqlite3.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libglusterfs/src/gfdb/gfdb_sqlite3.c b/libglusterfs/src/gfdb/gfdb_sqlite3.c
index 16930504742..ad94d648369 100644
--- a/libglusterfs/src/gfdb/gfdb_sqlite3.c
+++ b/libglusterfs/src/gfdb/gfdb_sqlite3.c
@@ -149,7 +149,7 @@ gf_sql_str2sync_t (const char *sync_str)
}
-/*TODO replace GF_CALLOC by mem_pool or iobuff if required for performace */
+/*TODO replace GF_CALLOC by mem_pool or iobuff if required for performance */
static char *
sql_stmt_init ()
{
@@ -168,7 +168,7 @@ out:
return sql_stmt;
}
-/*TODO replace GF_FREE by mem_pool or iobuff if required for performace */
+/*TODO replace GF_FREE by mem_pool or iobuff if required for performance */
static void
sql_stmt_fini (char **sql_stmt)
{
@@ -627,7 +627,7 @@ gf_get_basic_query_stmt (char **out_stmt)
/*
* Find All files recorded in the DB
* Input:
- * query_callback : query callback fuction to handle
+ * query_callback : query callback function to handle
* result records from the query
* */
int
@@ -699,7 +699,7 @@ out:
/*
* Find recently changed files from the DB
* Input:
- * query_callback : query callback fuction to handle
+ * query_callback : query callback function to handle
* result records from the query
* from_time : Time to define what is recent
* */
@@ -799,7 +799,7 @@ out:
/*
* Find unchanged files from a specified time from the DB
* Input:
- * query_callback : query callback fuction to handle
+ * query_callback : query callback function to handle
* result records from the query
* for_time : Time from where the file/s are not changed
* */
@@ -903,7 +903,7 @@ out:
* Find recently changed files with a specific frequency from the DB
* Input:
* db_conn : db connection object
- * query_callback : query callback fuction to handle
+ * query_callback : query callback function to handle
* result records from the query
* from_time : Time to define what is recent
* freq_write_cnt : Frequency thresold for write
@@ -1048,7 +1048,7 @@ out:
/*
* Find unchanged files from a specified time, w.r.t to frequency, from the DB
* Input:
- * query_callback : query callback fuction to handle
+ * query_callback : query callback function to handle
* result records from the query
* for_time : Time from where the file/s are not changed
* freq_write_cnt : Frequency thresold for write
@@ -1255,7 +1255,7 @@ out:
* this variable. The freeing of the memory should be done by
* the caller.
* Return:
- * On success return the lenght of the version string that is
+ * On success return the length of the version string that is
* extracted.
* On failure return -1
* */
@@ -1310,7 +1310,7 @@ out:
* extracted. This function will allocate memory
* to pragma_value. The caller should free the memory
* Return:
- * On success return the lenght of the pragma/setting value that is
+ * On success return the length of the pragma/setting value that is
* extracted.
* On failure return -1
* */
@@ -1415,7 +1415,7 @@ out:
* Input:
* void *db_conn : Sqlite connection
* gf_boolean_t compact_active : Is compaction on?
- * gf_boolean_t compact_mode_switched : Did we just flip the compaction swtich?
+ * gf_boolean_t compact_mode_switched : Did we just flip the compaction switch?
* Return:
* On success return 0
* On failure return -1