Commit 173f74ea authored by calvin's avatar calvin

branches/zip: remove duplicate "the" in comments.

parent 50ba5c73
...@@ -797,7 +797,7 @@ btr_create( ...@@ -797,7 +797,7 @@ btr_create(
buf_block_dbg_add_level(block, SYNC_TREE_NODE_NEW); buf_block_dbg_add_level(block, SYNC_TREE_NODE_NEW);
} }
/* Create a new index page on the the allocated segment page */ /* Create a new index page on the allocated segment page */
page_zip = buf_block_get_page_zip(block); page_zip = buf_block_get_page_zip(block);
if (UNIV_LIKELY_NULL(page_zip)) { if (UNIV_LIKELY_NULL(page_zip)) {
...@@ -1902,7 +1902,7 @@ btr_page_split_and_insert( ...@@ -1902,7 +1902,7 @@ btr_page_split_and_insert(
n_uniq, &heap); n_uniq, &heap);
/* If the new record is less than the existing record /* If the new record is less than the existing record
the the split in the middle will copy the existing the split in the middle will copy the existing
record to the new node. */ record to the new node. */
if (cmp_dtuple_rec(tuple, first_rec, offsets) < 0) { if (cmp_dtuple_rec(tuple, first_rec, offsets) < 0) {
split_rec = page_get_middle_rec(page); split_rec = page_get_middle_rec(page);
......
...@@ -378,7 +378,7 @@ buf_read_page( ...@@ -378,7 +378,7 @@ buf_read_page(
Applies linear read-ahead if in the buf_pool the page is a border page of Applies linear read-ahead if in the buf_pool the page is a border page of
a linear read-ahead area and all the pages in the area have been accessed. a linear read-ahead area and all the pages in the area have been accessed.
Does not read any page if the read-ahead mechanism is not activated. Note Does not read any page if the read-ahead mechanism is not activated. Note
that the the algorithm looks at the 'natural' adjacent successor and that the algorithm looks at the 'natural' adjacent successor and
predecessor of the page, which on the leaf level of a B-tree are the next predecessor of the page, which on the leaf level of a B-tree are the next
and previous page in the chain of leaves. To know these, the page specified and previous page in the chain of leaves. To know these, the page specified
in (space, offset) must already be present in the buf_pool. Thus, the in (space, offset) must already be present in the buf_pool. Thus, the
......
...@@ -1099,7 +1099,7 @@ fsp_header_inc_size( ...@@ -1099,7 +1099,7 @@ fsp_header_inc_size(
/**********************************************************************//** /**********************************************************************//**
Gets the current free limit of the system tablespace. The free limit Gets the current free limit of the system tablespace. The free limit
means the place of the first page which has never been put to the the means the place of the first page which has never been put to the
free list for allocation. The space above that address is initialized free list for allocation. The space above that address is initialized
to zero. Sets also the global variable log_fsp_current_free_limit. to zero. Sets also the global variable log_fsp_current_free_limit.
@return free limit in megabytes */ @return free limit in megabytes */
......
...@@ -802,7 +802,7 @@ ha_innobase::add_index( ...@@ -802,7 +802,7 @@ ha_innobase::add_index(
alter table t drop index b, add index (b); alter table t drop index b, add index (b);
The fix will have to parse the SQL and note that the index The fix will have to parse the SQL and note that the index
being added has the same name as the the one being dropped and being added has the same name as the one being dropped and
ignore that in the dup index check.*/ ignore that in the dup index check.*/
//dict_table_check_for_dup_indexes(prebuilt->table); //dict_table_check_for_dup_indexes(prebuilt->table);
#endif #endif
......
...@@ -48,7 +48,7 @@ buf_read_page( ...@@ -48,7 +48,7 @@ buf_read_page(
Applies linear read-ahead if in the buf_pool the page is a border page of Applies linear read-ahead if in the buf_pool the page is a border page of
a linear read-ahead area and all the pages in the area have been accessed. a linear read-ahead area and all the pages in the area have been accessed.
Does not read any page if the read-ahead mechanism is not activated. Note Does not read any page if the read-ahead mechanism is not activated. Note
that the the algorithm looks at the 'natural' adjacent successor and that the algorithm looks at the 'natural' adjacent successor and
predecessor of the page, which on the leaf level of a B-tree are the next predecessor of the page, which on the leaf level of a B-tree are the next
and previous page in the chain of leaves. To know these, the page specified and previous page in the chain of leaves. To know these, the page specified
in (space, offset) must already be present in the buf_pool. Thus, the in (space, offset) must already be present in the buf_pool. Thus, the
......
...@@ -317,7 +317,7 @@ struct dict_foreign_struct{ ...@@ -317,7 +317,7 @@ struct dict_foreign_struct{
char* id; /*!< id of the constraint as a char* id; /*!< id of the constraint as a
null-terminated string */ null-terminated string */
unsigned n_fields:10; /*!< number of indexes' first fields unsigned n_fields:10; /*!< number of indexes' first fields
for which the the foreign key for which the foreign key
constraint is defined: we allow the constraint is defined: we allow the
indexes to contain more fields than indexes to contain more fields than
mentioned in the constraint, as long mentioned in the constraint, as long
......
...@@ -42,7 +42,7 @@ fsp_init(void); ...@@ -42,7 +42,7 @@ fsp_init(void);
/*==========*/ /*==========*/
/**********************************************************************//** /**********************************************************************//**
Gets the current free limit of the system tablespace. The free limit Gets the current free limit of the system tablespace. The free limit
means the place of the first page which has never been put to the the means the place of the first page which has never been put to the
free list for allocation. The space above that address is initialized free list for allocation. The space above that address is initialized
to zero. Sets also the global variable log_fsp_current_free_limit. to zero. Sets also the global variable log_fsp_current_free_limit.
@return free limit in megabytes */ @return free limit in megabytes */
......
...@@ -283,7 +283,7 @@ log_make_checkpoint_at( ...@@ -283,7 +283,7 @@ log_make_checkpoint_at(
later lsn, if IB_ULONGLONG_MAX, makes later lsn, if IB_ULONGLONG_MAX, makes
a checkpoint at the latest lsn */ a checkpoint at the latest lsn */
ibool write_always); /*!< in: the function normally checks if ibool write_always); /*!< in: the function normally checks if
the the new checkpoint would have a the new checkpoint would have a
greater lsn than the previous one: if greater lsn than the previous one: if
not, then no physical write is done; not, then no physical write is done;
by setting this parameter TRUE, a by setting this parameter TRUE, a
......
...@@ -89,7 +89,7 @@ cmp_dfield_dfield( ...@@ -89,7 +89,7 @@ cmp_dfield_dfield(
/*************************************************************//** /*************************************************************//**
This function is used to compare a data tuple to a physical record. This function is used to compare a data tuple to a physical record.
Only dtuple->n_fields_cmp first fields are taken into account for Only dtuple->n_fields_cmp first fields are taken into account for
the the data tuple! If we denote by n = n_fields_cmp, then rec must the data tuple! If we denote by n = n_fields_cmp, then rec must
have either m >= n fields, or it must differ from dtuple in some of have either m >= n fields, or it must differ from dtuple in some of
the m fields rec has. If rec has an externally stored field we do not the m fields rec has. If rec has an externally stored field we do not
compare it but return with value 0 if such a comparison should be compare it but return with value 0 if such a comparison should be
......
...@@ -65,7 +65,7 @@ most significant bytes and bits are written below less significant. ...@@ -65,7 +65,7 @@ most significant bytes and bits are written below less significant.
- offset_of_this_record) mod 64Ki, - offset_of_this_record) mod 64Ki,
where mod is the modulo as a non-negative where mod is the modulo as a non-negative
number; number;
we can calculate the the offset of the next we can calculate the offset of the next
record with the formula: record with the formula:
relative_offset + offset_of_this_record relative_offset + offset_of_this_record
mod UNIV_PAGE_SIZE mod UNIV_PAGE_SIZE
......
...@@ -34,11 +34,11 @@ typedef byte trx_sysf_rseg_t; ...@@ -34,11 +34,11 @@ typedef byte trx_sysf_rseg_t;
/* Rollback segment specification slot offsets */ /* Rollback segment specification slot offsets */
/*-------------------------------------------------------------*/ /*-------------------------------------------------------------*/
#define TRX_SYS_RSEG_SPACE 0 /* space where the the segment #define TRX_SYS_RSEG_SPACE 0 /* space where the segment
header is placed; starting with header is placed; starting with
MySQL/InnoDB 5.1.7, this is MySQL/InnoDB 5.1.7, this is
UNIV_UNDEFINED if the slot is unused */ UNIV_UNDEFINED if the slot is unused */
#define TRX_SYS_RSEG_PAGE_NO 4 /* page number where the the segment #define TRX_SYS_RSEG_PAGE_NO 4 /* page number where the segment
header is placed; this is FIL_NULL header is placed; this is FIL_NULL
if the slot is unused */ if the slot is unused */
/*-------------------------------------------------------------*/ /*-------------------------------------------------------------*/
......
...@@ -360,7 +360,7 @@ enum trx_dict_op { ...@@ -360,7 +360,7 @@ enum trx_dict_op {
operation modes in crash recovery. */ operation modes in crash recovery. */
TRX_DICT_OP_TABLE = 1, TRX_DICT_OP_TABLE = 1,
/** The transaction is creating or dropping an index in an /** The transaction is creating or dropping an index in an
existing table. In crash recovery, the the data dictionary existing table. In crash recovery, the data dictionary
must be locked, but the table must not be dropped. */ must be locked, but the table must not be dropped. */
TRX_DICT_OP_INDEX = 2 TRX_DICT_OP_INDEX = 2
}; };
......
...@@ -214,7 +214,7 @@ a waiting s-lock request on the next record? If this s-lock was placed ...@@ -214,7 +214,7 @@ a waiting s-lock request on the next record? If this s-lock was placed
by a read cursor moving in the ascending order in the index, we cannot by a read cursor moving in the ascending order in the index, we cannot
do the insert immediately, because when we finally commit our transaction, do the insert immediately, because when we finally commit our transaction,
the read cursor should see also the new inserted record. So we should the read cursor should see also the new inserted record. So we should
move the read cursor backward from the the next record for it to pass over move the read cursor backward from the next record for it to pass over
the new inserted record. This move backward may be too cumbersome to the new inserted record. This move backward may be too cumbersome to
implement. If we in this situation just enqueue a second x-lock request implement. If we in this situation just enqueue a second x-lock request
for our transaction on the next record, then the deadlock mechanism for our transaction on the next record, then the deadlock mechanism
......
...@@ -2047,7 +2047,7 @@ log_make_checkpoint_at( ...@@ -2047,7 +2047,7 @@ log_make_checkpoint_at(
later lsn, if IB_ULONGLONG_MAX, makes later lsn, if IB_ULONGLONG_MAX, makes
a checkpoint at the latest lsn */ a checkpoint at the latest lsn */
ibool write_always) /*!< in: the function normally checks if ibool write_always) /*!< in: the function normally checks if
the the new checkpoint would have a the new checkpoint would have a
greater lsn than the previous one: if greater lsn than the previous one: if
not, then no physical write is done; not, then no physical write is done;
by setting this parameter TRUE, a by setting this parameter TRUE, a
......
...@@ -45,7 +45,7 @@ Created 2/2/1994 Heikki Tuuri ...@@ -45,7 +45,7 @@ Created 2/2/1994 Heikki Tuuri
============== ==============
The index page consists of a page header which contains the page's The index page consists of a page header which contains the page's
id and other information. On top of it are the the index records id and other information. On top of it are the index records
in a heap linked into a one way linear list according to alphabetic order. in a heap linked into a one way linear list according to alphabetic order.
Just below page end is an array of pointers which we call page directory, Just below page end is an array of pointers which we call page directory,
......
...@@ -36,7 +36,7 @@ Created 7/1/1994 Heikki Tuuri ...@@ -36,7 +36,7 @@ Created 7/1/1994 Heikki Tuuri
The records are put into alphabetical order in the following The records are put into alphabetical order in the following
way: let F be the first field where two records disagree. way: let F be the first field where two records disagree.
If there is a character in some position n where the the If there is a character in some position n where the
records disagree, the order is determined by comparison of records disagree, the order is determined by comparison of
the characters at position n, possibly after the characters at position n, possibly after
collating transformation. If there is no such character, collating transformation. If there is no such character,
...@@ -76,7 +76,7 @@ cmp_debug_dtuple_rec_with_match( ...@@ -76,7 +76,7 @@ cmp_debug_dtuple_rec_with_match(
/*************************************************************//** /*************************************************************//**
This function is used to compare two data fields for which the data type This function is used to compare two data fields for which the data type
is such that we must use MySQL code to compare them. The prototype here is such that we must use MySQL code to compare them. The prototype here
must be a copy of the the one in ha_innobase.cc! must be a copy of the one in ha_innobase.cc!
@return 1, 0, -1, if a is greater, equal, less than b, respectively */ @return 1, 0, -1, if a is greater, equal, less than b, respectively */
extern extern
int int
...@@ -399,7 +399,7 @@ cmp_data_data_slow( ...@@ -399,7 +399,7 @@ cmp_data_data_slow(
/*************************************************************//** /*************************************************************//**
This function is used to compare a data tuple to a physical record. This function is used to compare a data tuple to a physical record.
Only dtuple->n_fields_cmp first fields are taken into account for Only dtuple->n_fields_cmp first fields are taken into account for
the the data tuple! If we denote by n = n_fields_cmp, then rec must the data tuple! If we denote by n = n_fields_cmp, then rec must
have either m >= n fields, or it must differ from dtuple in some of have either m >= n fields, or it must differ from dtuple in some of
the m fields rec has. If rec has an externally stored field we do not the m fields rec has. If rec has an externally stored field we do not
compare it but return with value 0 if such a comparison should be compare it but return with value 0 if such a comparison should be
......
...@@ -614,7 +614,7 @@ future, but at the moment we plan to implement a more coarse solution, ...@@ -614,7 +614,7 @@ future, but at the moment we plan to implement a more coarse solution,
which could be called a global priority inheritance. If a thread which could be called a global priority inheritance. If a thread
has to wait for a long time, say 300 milliseconds, for a resource, has to wait for a long time, say 300 milliseconds, for a resource,
we just guess that it may be waiting for a resource owned by a background we just guess that it may be waiting for a resource owned by a background
thread, and boost the the priority of all runnable background threads thread, and boost the priority of all runnable background threads
to the normal level. The background threads then themselves adjust to the normal level. The background threads then themselves adjust
their fixed priority back to background after releasing all resources their fixed priority back to background after releasing all resources
they had (or, at some fixed points in their program code). they had (or, at some fixed points in their program code).
......
...@@ -1829,7 +1829,7 @@ innobase_start_or_create_for_mysql(void) ...@@ -1829,7 +1829,7 @@ innobase_start_or_create_for_mysql(void)
/* Actually, we did not change the undo log format between /* Actually, we did not change the undo log format between
4.0 and 4.1.1, and we would not need to run purge to 4.0 and 4.1.1, and we would not need to run purge to
completion. Note also that the purge algorithm in 4.1.1 completion. Note also that the purge algorithm in 4.1.1
can process the the history list again even after a full can process the history list again even after a full
purge, because our algorithm does not cut the end of the purge, because our algorithm does not cut the end of the
history list in all cases so that it would become empty history list in all cases so that it would become empty
after a full purge. That mean that we may purge 4.0 type after a full purge. That mean that we may purge 4.0 type
......
...@@ -62,7 +62,7 @@ struct thr_local_struct{ ...@@ -62,7 +62,7 @@ struct thr_local_struct{
os_thread_t handle; /*!< operating system handle to the thread */ os_thread_t handle; /*!< operating system handle to the thread */
ulint slot_no;/*!< the index of the slot in the thread table ulint slot_no;/*!< the index of the slot in the thread table
for this thread */ for this thread */
ibool in_ibuf;/*!< TRUE if the the thread is doing an ibuf ibool in_ibuf;/*!< TRUE if the thread is doing an ibuf
operation */ operation */
hash_node_t hash; /*!< hash chain node */ hash_node_t hash; /*!< hash chain node */
ulint magic_n;/*!< magic number (THR_LOCAL_MAGIC_N) */ ulint magic_n;/*!< magic number (THR_LOCAL_MAGIC_N) */
......
...@@ -1572,7 +1572,7 @@ trx_undo_prev_version_build( ...@@ -1572,7 +1572,7 @@ trx_undo_prev_version_build(
/* We have to set the appropriate extern storage bits in the /* We have to set the appropriate extern storage bits in the
old version of the record: the extern bits in rec for those old version of the record: the extern bits in rec for those
fields that update does NOT update, as well as the the bits for fields that update does NOT update, as well as the bits for
those fields that update updates to become externally stored those fields that update updates to become externally stored
fields. Store the info: */ fields. Store the info: */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment