Transaction log: Delete on a table without primary key produces insufficient info
Bug #494944 reported by
Jobin Augustine
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Critical
|
Jay Pipes |
Bug Description
Replication steps:
create table emp (nm varchar(30),id integer);
insert into emp values ('jobin',1);
insert into emp values ('honey',2);
insert into emp values ('kunju',3);
delete from emp where id>1;
produced output:
trx: transaction_context {
server_id: 1
transaction_id: 17
start_timestamp: 1260456288382463
end_timestamp: 1260456288581486
}
statement {
type: DELETE
start_timestamp: 1260456288382466
end_timestamp: 1260456288581484
delete_header {
table_metadata {
schema_name: "test"
table_name: "emp"
}
}
delete_data {
segment_id: 1
end_segment: true
record {
}
record {
}
}
}
Related branches
lp://staging/~jaypipes/drizzle/transaction_log
- Brian Aker: Pending requested
- Drizzle Developers: Pending requested
-
Diff: 1072 lines (+497/-37)26 files modifieddrizzled/message/statement_transform.cc (+8/-7)
drizzled/message/statement_transform.h (+2/-1)
drizzled/message/transaction_reader.cc (+6/-1)
plugin/transaction_log/tests/r/alter.result (+16/-0)
plugin/transaction_log/tests/r/auto_commit.result (+24/-10)
plugin/transaction_log/tests/r/blob.result (+12/-0)
plugin/transaction_log/tests/r/create_select.result (+16/-0)
plugin/transaction_log/tests/r/database.result (+4/-0)
plugin/transaction_log/tests/r/delete.result (+57/-1)
plugin/transaction_log/tests/r/filtered_replicator.result (+154/-12)
plugin/transaction_log/tests/r/insert.result (+8/-0)
plugin/transaction_log/tests/r/insert_multi.result (+4/-0)
plugin/transaction_log/tests/r/insert_on_duplicate_update.result (+12/-0)
plugin/transaction_log/tests/r/insert_select.result (+12/-0)
plugin/transaction_log/tests/r/no_modification.result (+8/-0)
plugin/transaction_log/tests/r/no_primary_key.result (+6/-0)
plugin/transaction_log/tests/r/rand.result (+10/-0)
plugin/transaction_log/tests/r/rename.result (+8/-0)
plugin/transaction_log/tests/r/replace.result (+28/-0)
plugin/transaction_log/tests/r/rollback.result (+6/-0)
plugin/transaction_log/tests/r/select_for_update.result (+12/-0)
plugin/transaction_log/tests/r/temp_tables.result (+8/-0)
plugin/transaction_log/tests/r/truncate.result (+10/-0)
plugin/transaction_log/tests/r/update.result (+36/-0)
plugin/transaction_log/tests/t/alter.inc (+3/-5)
plugin/transaction_log/tests/t/delete.inc (+27/-0)
Changed in drizzle: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This looks to be one of the limitations since the table does not have a primary key on it. Currently no error is thrown. Bug 479743 has some more discussion on it.