diff options
author | Michael Adam <obnox@samba.org> | 2009-10-28 01:54:04 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-11-26 11:40:34 +0100 |
commit | d741eee4c90f0b6730b427d858740ddf0fff7fa7 (patch) | |
tree | 8a624bcdfe0935b88eb33f7f744b76ce1633f706 /source3/lib/packet.c | |
parent | 114d73ff98c4be6c98d18b346bce228bacf18ba1 (diff) | |
download | samba-d741eee4c90f0b6730b427d858740ddf0fff7fa7.tar.gz samba-d741eee4c90f0b6730b427d858740ddf0fff7fa7.tar.xz samba-d741eee4c90f0b6730b427d858740ddf0fff7fa7.zip |
s3:dbwrap_ctdb: fix a race in starting concurrent transactions on a single node
There are two races in concurrent transactions on a single node.
One in starting a transaction and one with replay during commit.
This commit closes the first race by storing the client pid in the
transaction-lock record and comparing the stored pid against its own
pid after releasing the lock and refetching the record inside the
transaction.
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 7b37b8a5dcc08817b21e12570da6632674cc7575)
Diffstat (limited to 'source3/lib/packet.c')
0 files changed, 0 insertions, 0 deletions