diff options
| author | Matthew Sackman <matthew@lshift.net> | 2009-04-14 12:46:35 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@lshift.net> | 2009-04-14 12:46:35 +0100 |
| commit | d30830b7be0a2f6e1141beac06c934c05e2c4789 (patch) | |
| tree | b3ba5fcbde55f24e44700c513cebfe5637d116ba /src | |
| parent | 9b399fc817b9ef8c5992e3b4ca495e19e04df04c (diff) | |
| download | rabbitmq-server-git-d30830b7be0a2f6e1141beac06c934c05e2c4789.tar.gz | |
fixed bug. GC does seem to work, though no explicit tests for it yet.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_disk_queue.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_disk_queue.erl b/src/rabbit_disk_queue.erl index 22406b0b0c..94a444e2a1 100644 --- a/src/rabbit_disk_queue.erl +++ b/src/rabbit_disk_queue.erl @@ -459,7 +459,7 @@ combineFiles({Source, SourceValid, _SourceContiguousTop, _SourceLeft, _SourceRig {ok, 0} = file:position(TmpHdl, {bof, 0}), {ok, DestinationContiguousTop} = file:position(DestinationHdl, {bof, DestinationContiguousTop}), ok = file:truncate(DestinationHdl), - {ok, ExpectedSize} = file:position(DestinationHdl, {cur, SourceValid}), + {ok, ExpectedSize} = file:position(DestinationHdl, {bof, ExpectedSize}), ok = file:truncate(DestinationHdl), {ok, DestinationContiguousTop} = file:position(DestinationHdl, {bof, DestinationContiguousTop}), {ok, TmpSize} = file:copy(TmpHdl, DestinationHdl, TmpSize), |
