summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/gfdb
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/gfdb')
-rw-r--r--libglusterfs/src/gfdb/gfdb_data_store.c10
-rw-r--r--libglusterfs/src/gfdb/gfdb_data_store.h4
-rw-r--r--libglusterfs/src/gfdb/gfdb_data_store_helper.c2
-rw-r--r--libglusterfs/src/gfdb/gfdb_data_store_helper.h2
-rw-r--r--libglusterfs/src/gfdb/gfdb_data_store_types.h2
-rw-r--r--libglusterfs/src/gfdb/gfdb_sqlite3.c20
-rw-r--r--libglusterfs/src/gfdb/gfdb_sqlite3.h8
-rw-r--r--libglusterfs/src/gfdb/gfdb_sqlite3_helper.c12
8 files changed, 30 insertions, 30 deletions
diff --git a/libglusterfs/src/gfdb/gfdb_data_store.c b/libglusterfs/src/gfdb/gfdb_data_store.c
index 8ba7606012a..78fd22ee252 100644
--- a/libglusterfs/src/gfdb/gfdb_data_store.c
+++ b/libglusterfs/src/gfdb/gfdb_data_store.c
@@ -115,7 +115,7 @@ add_connection_node (gfdb_conn_node_t *_conn_node) {
/*TODO What if the unlock fails.
* Will it lead to deadlock?
* Most of the gluster code
- * no check for unlock or destory of mutex!*/
+ * no check for unlock or destroy of mutex!*/
}
ret = 0;
out:
@@ -163,7 +163,7 @@ delete_conn_node (gfdb_conn_node_t *_conn_node)
/*TODO What if the unlock fails.
* Will it lead to deadlock?
* Most of the gluster code
- * no check for unlock or destory of mutex!*/
+ * no check for unlock or destroy of mutex!*/
ret = -1;
goto out;
}
@@ -241,7 +241,7 @@ init_db (dict_t *args, gfdb_db_type_t gfdb_db_type)
goto alloc_failed;
}
- /*Init the list component of db conneciton object*/
+ /*Init the list component of db connection object*/
INIT_LIST_HEAD (&_conn_node->conn_list);
@@ -355,7 +355,7 @@ out:
* link of inode from GF_FLINK_TB and
* GFDB_FOP_UNDEL_ALL to delete all the records from
* GF_FLINK_TB and GF_FILE_TB.
- * TODO: Should seperate this function into the
+ * TODO: Should separate this function into the
* delete_record function
* Refer CTR Xlator features/changetimerecorder for usage
* Arguments:
@@ -756,7 +756,7 @@ clear_files_heat (gfdb_conn_node_t *conn_node)
* 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
* */
diff --git a/libglusterfs/src/gfdb/gfdb_data_store.h b/libglusterfs/src/gfdb/gfdb_data_store.h
index beb954c190a..93bdda813a9 100644
--- a/libglusterfs/src/gfdb/gfdb_data_store.h
+++ b/libglusterfs/src/gfdb/gfdb_data_store.h
@@ -72,7 +72,7 @@ typedef int (*fini_db_t) (gfdb_conn_node_t *_conn_node);
* link of inode from GF_FLINK_TB and
* GFDB_FOP_UNDEL_ALL to delete all the records from
* GF_FLINK_TB and GF_FILE_TB.
- * TODO: Should seperate this function into the
+ * TODO: Should separate this function into the
* delete_record function
* Refer CTR Xlator features/changetimerecorder for usage
* Arguments:
@@ -289,7 +289,7 @@ typedef int (*get_db_version_t)(gfdb_conn_node_t *_conn_node,
* extracted. This function will allocate memory
* to pragma_value. The caller should free the memory.
* Return:
- * On success return the lenght of the param value that is
+ * On success return the length of the param value that is
* extracted.
* On failure return -1
* */
diff --git a/libglusterfs/src/gfdb/gfdb_data_store_helper.c b/libglusterfs/src/gfdb/gfdb_data_store_helper.c
index fba5ec5a252..d5cfb24eeba 100644
--- a/libglusterfs/src/gfdb/gfdb_data_store_helper.c
+++ b/libglusterfs/src/gfdb/gfdb_data_store_helper.c
@@ -446,7 +446,7 @@ gfdb_query_record_deserialize (char *in_buffer,
list_add_tail (&link_info->list,
&(ret_qrecord->link_list));
- /* Reseting link_info */
+ /* Resetting link_info */
link_info = NULL;
}
diff --git a/libglusterfs/src/gfdb/gfdb_data_store_helper.h b/libglusterfs/src/gfdb/gfdb_data_store_helper.h
index ce1f1c52281..7e81aab08a6 100644
--- a/libglusterfs/src/gfdb/gfdb_data_store_helper.h
+++ b/libglusterfs/src/gfdb/gfdb_data_store_helper.h
@@ -72,7 +72,7 @@ typedef gfdb_query_record_t *
-/* Fuction to add linkinfo to query record */
+/* Function to add linkinfo to query record */
int
gfdb_add_link_to_query_record (gfdb_query_record_t *gfdb_query_record,
uuid_t pgfid,
diff --git a/libglusterfs/src/gfdb/gfdb_data_store_types.h b/libglusterfs/src/gfdb/gfdb_data_store_types.h
index 3add890b047..f20ae4ded78 100644
--- a/libglusterfs/src/gfdb/gfdb_data_store_types.h
+++ b/libglusterfs/src/gfdb/gfdb_data_store_types.h
@@ -255,7 +255,7 @@ typedef struct gfdb_db_record {
/*Time of change or access*/
gfdb_time_t gfdb_wind_change_time;
gfdb_time_t gfdb_unwind_change_time;
- /* For crash consistancy while inserting/updating hard links */
+ /* For crash consistency while inserting/updating hard links */
gf_boolean_t islinkupdate;
/* For link consistency we do a double update i.e mark the link
* during the wind and during the unwind we update/delete the link.
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
diff --git a/libglusterfs/src/gfdb/gfdb_sqlite3.h b/libglusterfs/src/gfdb/gfdb_sqlite3.h
index 5b55b0ace5e..11bf3e82707 100644
--- a/libglusterfs/src/gfdb/gfdb_sqlite3.h
+++ b/libglusterfs/src/gfdb/gfdb_sqlite3.h
@@ -229,7 +229,7 @@ gfdb_set_sql_params(char *comp_name, dict_t *from_dict, dict_t *to_dict)
GF_ASSERT (from_dict);
GF_ASSERT (to_dict);
- /*Extact and Set of the sql params from page_size*/
+ /*Extract and Set of the sql params from page_size*/
for (sql_index = sql_pagesize_ix; sql_index < sql_index_max;
sql_index++) {
_val_str = NULL;
@@ -292,7 +292,7 @@ int gf_sqlite3_clear_files_heat (void *db_conn);
* 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
* */
@@ -306,7 +306,7 @@ int gf_sqlite3_version (void *db_conn, char **version);
* 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
* */
@@ -328,7 +328,7 @@ gf_sqlite3_set_pragma (void *db_conn, char *pragma_key, char *pragma_value);
* 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
diff --git a/libglusterfs/src/gfdb/gfdb_sqlite3_helper.c b/libglusterfs/src/gfdb/gfdb_sqlite3_helper.c
index 8e1e27ff082..b2c3392f45a 100644
--- a/libglusterfs/src/gfdb/gfdb_sqlite3_helper.c
+++ b/libglusterfs/src/gfdb/gfdb_sqlite3_helper.c
@@ -631,14 +631,14 @@ gf_update_time (gf_sql_connection_t *sql_conn,
freq_cntr_str = (record_counter) ?
", WRITE_FREQ_CNTR = WRITE_FREQ_CNTR + 1" : "";
- /*Prefectly safe as we will not go array of bound*/
+ /*Perfectly safe as we will not go array of bound*/
sprintf (update_str, "UPDATE "
GF_FILE_TABLE
" SET W_SEC = ?, W_MSEC = ? "
" %s"/*place for read freq counters*/
" WHERE GF_ID = ? ;", freq_cntr_str);
} else {
- /*Prefectly safe as we will not go array of bound*/
+ /*Perfectly safe as we will not go array of bound*/
sprintf (update_str, "UPDATE "
GF_FILE_TABLE
" SET UW_SEC = ?, UW_MSEC = ? ;");
@@ -651,14 +651,14 @@ gf_update_time (gf_sql_connection_t *sql_conn,
freq_cntr_str = (record_counter) ?
", READ_FREQ_CNTR = READ_FREQ_CNTR + 1" : "";
- /*Prefectly safe as we will not go array of bound*/
+ /*Perfectly safe as we will not go array of bound*/
sprintf (update_str, "UPDATE "
GF_FILE_TABLE
" SET W_READ_SEC = ?, W_READ_MSEC = ? "
" %s"/*place for read freq counters*/
" WHERE GF_ID = ? ;", freq_cntr_str);
} else {
- /*Prefectly safe as we will not go array of bound*/
+ /*Perfectly safe as we will not go array of bound*/
sprintf (update_str, "UPDATE "
GF_FILE_TABLE
" SET UW_READ_SEC = ?, UW_READ_MSEC = ? ;");
@@ -794,7 +794,7 @@ gf_sql_insert_wind (gf_sql_connection_t *sql_conn,
* gf_file_tb is deleted but the link record
* still exist. Lookup heal will attempt a heal
* with create_wind set. The link heal will fail
- * as there is already a record and if we dont
+ * as there is already a record and if we don't
* ignore the error we will not heal the
* gf_file_tb.
* 2) Rename file in cold tier: During a rename
@@ -803,7 +803,7 @@ gf_sql_insert_wind (gf_sql_connection_t *sql_conn,
* linkto file. When the file gets heated and
* moves to hot tier there will be attempt from
* ctr lookup heal to create link and file
- * record and If we dont ignore the error we
+ * record and If we don't ignore the error we
* will not heal the gf_file_tb.
* */
}