diff options
author | Hans Bolinder <[email protected]> | 2010-09-21 14:40:18 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2010-10-21 08:51:13 +0200 |
commit | d98b14f2c2c808491e1a5942820cddaab4d65742 (patch) | |
tree | 189ab42a00b3095fda9e9d49154c678a4d13c8c5 /lib/stdlib/src | |
parent | dc7d2319691fa599717c066460cce53ce97b6b18 (diff) | |
download | otp-d98b14f2c2c808491e1a5942820cddaab4d65742.tar.gz otp-d98b14f2c2c808491e1a5942820cddaab4d65742.tar.bz2 otp-d98b14f2c2c808491e1a5942820cddaab4d65742.zip |
Fix a bug in dets:insert_new()
When several clients accessed a Dets table simultaneously, one of them
calling dets:insert_new/2, the Dets server could crash. Alternatively,
under the same conditions, 'ok' was sometimes returned instead of 'true'.
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r-- | lib/stdlib/src/dets.erl | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/stdlib/src/dets.erl b/lib/stdlib/src/dets.erl index 4584b8184f..cc1f35914a 100644 --- a/lib/stdlib/src/dets.erl +++ b/lib/stdlib/src/dets.erl @@ -1381,9 +1381,6 @@ stream_op(Head, Pids, C, N, Pid, {lookup_keys,Keys}, Fxd) -> stream_op(Head, Pids, C, N, Pid, {insert, _Objects} = Op, Fxd) -> NC = [Op | C], stream_loop(Head, [Pid | Pids], NC, N, Fxd); -stream_op(Head, Pids, C, N, Pid, {insert_new, _Objects} = Op, Fxd) -> - NC = [Op | C], - stream_loop(Head, [Pid | Pids], NC, N, Fxd); stream_op(Head, Pids, C, N, Pid, {delete_key, _Keys} = Op, Fxd) -> NC = [Op | C], stream_loop(Head, [Pid | Pids], NC, N, Fxd); |