diff options
| author | Tim Fox <tim@rabbitmq.com> | 2011-02-11 12:11:43 +0000 |
|---|---|---|
| committer | Tim Fox <tim@rabbitmq.com> | 2011-02-11 12:11:43 +0000 |
| commit | e289045b11b859ab994d3709d3dd4e2af8ef722a (patch) | |
| tree | a39c7f8d4c67f998600c5451eb234d54e12b7858 | |
| parent | 07a26591193b98fc3e6882fb14328612b9251313 (diff) | |
| download | rabbitmq-server-git-e289045b11b859ab994d3709d3dd4e2af8ef722a.tar.gz | |
remove commented out code
| -rw-r--r-- | src/file_handle_cache.erl | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl index 9bb7abd7ac..921b1211e2 100644 --- a/src/file_handle_cache.erl +++ b/src/file_handle_cache.erl @@ -849,30 +849,6 @@ handle_call({open, Pid, Requested, EldestUnusedSince}, From, false -> {noreply, run_pending_item(Item, State1)} end; -%% handle_call({obtain, Pid}, From, State = #fhc_state { obtain_limit = Limit, -%% obtain_count = Count, -%% obtain_pending = Pending, -%% clients = Clients }) -%% when Limit =/= infinity andalso Count >= Limit -> -%% ok = track_client(Pid, Clients), -%% true = ets:update_element(Clients, Pid, {#cstate.blocked, true}), -%% Item = #pending { kind = obtain, pid = Pid, requested = 1, from = From }, -%% {noreply, State #fhc_state { obtain_pending = pending_in(Item, Pending) }}; - -%% handle_call({obtain, Pid}, From, State = #fhc_state { obtain_count = Count, -%% obtain_pending = Pending, -%% clients = Clients }) -> -%% Item = #pending { kind = obtain, pid = Pid, requested = 1, from = From }, -%% ok = track_client(Pid, Clients), -%% case needs_reduce(State #fhc_state { obtain_count = Count + 1 }) of -%% true -> -%% true = ets:update_element(Clients, Pid, {#cstate.blocked, true}), -%% {noreply, reduce(State #fhc_state { -%% obtain_pending = pending_in(Item, Pending) })}; -%% false -> -%% {noreply, adjust_alarm(State, run_pending_item(Item, State))} -%% end; - handle_call({obtain, Pid}, From, State = #fhc_state { obtain_count = Count, obtain_pending = Pending, clients = Clients }) -> |
