diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2011-02-21 11:21:09 +0000 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-02-21 11:21:09 +0000 |
| commit | e94c1299c2256610adafec351cedb0b316e220e3 (patch) | |
| tree | 15054daa33b8f994e15d12c36bc5c2d35ff4f753 /src | |
| parent | 8a9e54b4fc055973925a181fb1768934af16ae1d (diff) | |
| download | rabbitmq-server-git-e94c1299c2256610adafec351cedb0b316e220e3.tar.gz | |
whitespace
Diffstat (limited to 'src')
| -rw-r--r-- | src/file_handle_cache.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl index 7c548bdc74..f41815d06b 100644 --- a/src/file_handle_cache.erl +++ b/src/file_handle_cache.erl @@ -889,13 +889,16 @@ handle_call({obtain, Pid}, From, State = #fhc_state { obtain_count = Count, false -> {noreply, run_pending_item(Item, State)} end; + handle_call({set_limit, Limit}, _From, State) -> {reply, ok, maybe_reduce( process_pending(State #fhc_state { limit = Limit, obtain_limit = obtain_limit(Limit) }))}; + handle_call(get_limit, _From, State = #fhc_state { limit = Limit }) -> {reply, Limit, State}; + handle_call({info, Items}, _From, State) -> {reply, infos(Items, State), State}. |
