ingo/istruewing@chilla.local
8e4c36ad4a
Bug#18775 - Temporary table from alter table visible to other threads
...
Continued implementation of WL#1324 (table name to filename encoding)
The intermediate (not temporary) files of the new table
during ALTER TABLE was visible for SHOW TABLES. These
intermediate files are copies of the original table with
the changes done by ALTER TABLE. After all the data is
copied over from the original table, these files are renamed
to the original tables file names. So they are not temporary
files. They persist after ALTER TABLE, but just with another
name.
In 5.0 the intermediate files are invisible for SHOW TABLES
because all file names beginning with "#sql" were suppressed.
This failed since 5.1.6 because even temporary table names were
converted when making file names from them. The prefix became
converted to "@0023sql". Converting the prefix during SHOW TABLES
would suppress the listing of user tables that start with "#sql".
The solution of the problem is to continue the implementation of
the table name to file name conversion feature. One requirement
is to suppress the conversion for temporary table names.
This change is straightforward for real temporary tables as there
is a function that creates temporary file names.
But the generated path names are located in TMPDIR and have no
relation to the internal table name. This cannot be used for
ALTER TABLE. Its intermediate files need to be in the same
directory as the old table files. And it is necessary to be
able to deduce the same path from the same table name repeatedly.
Consequently the intermediate table files must be handled like normal
tables. Their internal names shall start with tmp_file_prefix
(#sql) and they shall not be converted like normal table names.
I added a flags parameter to all relevant functions that are
called from ALTER TABLE. It is used to suppress the conversion
for the intermediate table files.
The outcome is that the suppression of #sql in SHOW TABLES
works again. It does not suppress user tables as these are
converted to @0023sql on file level.
This patch does also fix ALTER TABLE ... RENAME, which could not
rename a table with non-ASCII characters in its name.
It does also fix the problem that a user could create a table like
`#sql-xxxx-yyyy`, where xxxx is mysqld's pid and yyyy is the thread
ID of some other thread, which prevented this thread from running
ALTER TABLE.
Some of the above problems are mentioned in Bug 1405, which can
be closed with this patch.
This patch does also contain some minor fixes for other forgotten
conversions. Still known problems are reported as bugs 21370,
21373, and 21387.
2006-08-02 17:57:06 +02:00
ingo/mydev@chilla.local
4cdb1469e0
Merge chilla.local:/home/mydev/mysql-5.1--main
...
into chilla.local:/home/mydev/mysql-5.1-amerge
2006-07-08 10:54:54 +02:00
tomas@poseidon.ndb.mysql.com
5ab4800fc2
Bug #20897 race condition between drop table and suma drop trigger
...
- keep accounting for aoutstanding drop trigger requests
- also lock table object in suma while doing that (should be impossible right now though since dict serializes all requests)
2006-07-07 17:50:45 +02:00
ingo/mydev@chilla.local
49587d4b37
Merge chilla.local:/home/mydev/mysql-5.1--main
...
into chilla.local:/home/mydev/mysql-5.1-amerge
2006-07-07 09:14:09 +02:00
ingo@chilla.local
1a98b89334
Merge chilla.local:/home/mydev/mysql-5.1
...
into chilla.local:/home/mydev/mysql-5.1-amerge
2006-07-06 21:45:15 +02:00
tomas@poseidon.ndb.mysql.com
1db0b2c6a6
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
...
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-ndb
2006-07-06 19:02:38 +02:00
ingo@chilla.local
db0e7774aa
Merge chilla.local:/home/mydev/mysql-5.0-ateam
...
into chilla.local:/home/mydev/mysql-5.1-ateam
2006-07-06 13:18:00 +02:00
jonas@perch.ndb.mysql.com
200deaa99e
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb
...
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
2006-07-06 12:11:14 +02:00
tomas@poseidon.ndb.mysql.com
4d0d6cff98
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1
...
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-ndb
2006-07-06 12:11:13 +02:00
jonas@perch.ndb.mysql.com
88f816a0fd
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
...
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
2006-07-06 09:40:04 +02:00
mskold@linux.site
0c5c9e174b
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.1
...
into mysql.com:/home/marty/MySQL/mysql-5.1
2006-07-06 09:08:39 +02:00
tomas@poseidon.ndb.mysql.com
55a9bab25e
Bug #20843 tests fails randomly with assertion in completeClusterFailed
...
- flush gci needs to be reset on disconnect as cluster may reconnect after --initial with a smaller gci
2006-07-06 01:33:53 +02:00
tomas@poseidon.ndb.mysql.com
f822477297
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
...
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-ndb
2006-07-05 20:31:32 +02:00
tomas@poseidon.ndb.mysql.com
4f2becc9d3
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
...
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-ndb
2006-07-05 20:23:23 +02:00
pekka@clam.ndb.mysql.com
38d63c303a
ndb - ndb api : try to catch autoincr 'error 0'
2006-07-05 17:36:19 +02:00
mskold@linux.site
75a6a16a19
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.1
...
into mysql.com:/home/marty/MySQL/mysql-5.1
2006-07-05 16:30:14 +02:00
mskold@mysql.com
7c650824dc
Bug #19645 Data Node hangs in phase 100: post review fix, removed test printout
2006-07-05 15:32:17 +02:00
mskold@mysql.com
d951bc61ff
Bug #19645 Data Node hangs in phase 100: distribute API_FAIL_REQ so all nodes have the same view of what API's are connected
2006-07-05 15:04:47 +02:00
tomas@poseidon.ndb.mysql.com
1b7da4b8ed
extra logging and asserts to try to track down the spurious completeCluster failure assetion
...
corrected error in invalidation of dict cache which may be causing the valgrind warning at times
2006-07-05 14:20:14 +02:00
tomas@poseidon.ndb.mysql.com
0a75f5fe0a
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1
...
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-ndb
2006-07-05 01:56:38 +02:00
tomas@poseidon.ndb.mysql.com
980852eed3
Bug #20742 Assertion in drop of ndb binlog events after node restart
2006-07-04 17:58:20 +02:00
tomas@poseidon.ndb.mysql.com
6512316c3a
Bug #20742 Assertion in drop of ndb binlog events after node restart
...
- make sure TE_ACTIVE event comes when node restarts so that ref counting is correct for drop of event
2006-07-04 17:37:44 +02:00
mskold@linux.site
9509145a9d
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.1
...
into mysql.com:/home/marty/MySQL/mysql-5.1-extra
2006-07-04 12:57:24 +02:00
tomas@poseidon.ndb.mysql.com
8a2694e25f
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1
...
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
2006-07-04 11:21:19 +02:00
mskold@linux.site
f5fb7ef27a
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.1
...
into mysql.com:/home/marty/MySQL/mysql-5.1-extra
2006-07-04 09:17:32 +02:00
mskold@mysql.com
59d69f6d38
Fix for Bug #18413 Data usage for varsize columns are not correctly reported to mysqld
2006-07-03 17:09:32 +02:00
pekka@clam.ndb.mysql.com
ea794df45a
ndb - bug#20751 : report also composite op in merge
2006-07-03 12:13:57 +02:00
jonas@perch.ndb.mysql.com
05f14b144b
Merge perch.ndb.mysql.com:/home/jonas/src/51-work
...
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
2006-06-30 11:26:47 +02:00
jonas@perch.ndb.mysql.com
75c9f3cd01
Merge perch.ndb.mysql.com:/home/jonas/src/51-work
...
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new
2006-06-30 11:26:10 +02:00
jonas@perch.ndb.mysql.com
bc621b6418
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1
...
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new
2006-06-30 11:18:31 +02:00
jonas@perch.ndb.mysql.com
8e11f6f508
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
...
into perch.ndb.mysql.com:/home/jonas/src/51-work
2006-06-30 10:31:43 +02:00
jonas@perch.ndb.mysql.com
ba1541c914
Merge perch.ndb.mysql.com:/home/jonas/src/51-work
...
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
2006-06-29 16:32:51 +02:00
jonas@perch.ndb.mysql.com
d7649bac06
Merge perch.ndb.mysql.com:/home/jonas/src/51-work
...
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new
2006-06-29 16:32:23 +02:00
jonas@perch.ndb.mysql.com
52e248a7d7
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
...
into perch.ndb.mysql.com:/home/jonas/src/51-work
2006-06-29 16:23:38 +02:00
stewart@willster.(none)
c3010c2497
Merge mysql.com:/home/stewart/Documents/MySQL/5.1/bug17928
...
into mysql.com:/home/stewart/Documents/MySQL/5.1/ndb
2006-06-29 22:36:27 +10:00
stewart@willster.(none)
c19578fbfd
Merge mysql.com:/home/stewart/Documents/MySQL/5.1/ndb
...
into mysql.com:/home/stewart/Documents/MySQL/5.1/merge
2006-06-28 22:16:04 +10:00
stewart@willster.(none)
e5567d8402
Merge mysql.com:/home/stewart/Documents/MySQL/5.0/merge
...
into mysql.com:/home/stewart/Documents/MySQL/5.1/merge
2006-06-28 22:06:26 +10:00
jonas@perch.ndb.mysql.com
f54b1e0dcf
ndb -
...
50->51 merge of bug#20442, force close scan (with locks)
2006-06-28 12:16:10 +02:00
jonas@perch.ndb.mysql.com
ff2528f3c0
ndb -
...
ndbapi test of bug#20252
2006-06-28 11:38:22 +02:00
jonas@perch.ndb.mysql.com
7f30766001
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
...
into perch.ndb.mysql.com:/home/jonas/src/51-work
2006-06-28 11:32:29 +02:00
jonas@perch.ndb.mysql.com
b26e651f98
Merge perch.ndb.mysql.com:/home/jonas/src/51-work
...
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new
2006-06-28 08:47:43 +02:00
tomas@poseidon.ndb.mysql.com
9bc0c99aca
Bug #19852 Restoring backup made from cluster with full data memory fails
...
- post merge fixes for 5.1
2006-06-27 13:40:33 +02:00
tomas@poseidon.ndb.mysql.com
49c8863bbf
Bug #19852 Restoring backup made from cluster with full data memory fails
...
- post merge fixes for 5.1
2006-06-27 13:12:34 +02:00
jonas@perch.ndb.mysql.com
552d53bb88
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
...
into perch.ndb.mysql.com:/home/jonas/src/51-work
2006-06-27 11:46:02 +02:00
tomas@poseidon.ndb.mysql.com
f923d6395d
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-main
...
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
2006-06-27 11:22:42 +02:00
jonas@perch.ndb.mysql.com
33339fdf40
ndb - bug#20053
...
make sure we can only drop files from correct file group
2006-06-26 15:08:09 +02:00
jonas@perch.ndb.mysql.com
e9cbae32ea
ndb - bug#20683
...
part 2 - handle safecounter.init() failing in all parts of event code
2006-06-26 12:31:09 +02:00
jonas@perch.ndb.mysql.com
874607884b
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
...
into perch.ndb.mysql.com:/home/jonas/src/51-work
2006-06-26 12:19:29 +02:00
jonas@perch.ndb.mysql.com
50b8eb8538
Merge perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new
...
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
2006-06-26 10:02:03 +02:00
monty@hasky.mysql.fi
14e05051f1
Merge monty@192.168.0.9:/my/mysql-5.1
...
into mysql.com:/home/my/mysql-5.1
2006-06-23 03:04:13 +03:00