Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Assertion fail when insert and delete in the same transaction #1336

Closed
@nwang57

Description

@nwang57
create table foo(id integer);

begin;
insert into foo values(5);
delete from foo where id = 5;

The assertion failed at line 618 in src/concurrency/timestamp_ordering_transaction_manager.cpp. It seems that if the txn owns the tuple, it will not update the tuple's last reader id. So the commitId is 0 during the assertion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions