summaryrefslogtreecommitdiff
path: root/src/file_handle_cache.erl
diff options
context:
space:
mode:
authorFrancesco Mazzoli <francesco@rabbitmq.com>2012-02-07 16:59:20 +0000
committerFrancesco Mazzoli <francesco@rabbitmq.com>2012-02-07 16:59:20 +0000
commit425557b29b2b11e07a399f75f6726cf07963cfc1 (patch)
tree4fde1e6341863ab9ab818e85b3d9e07ccec6ae2b /src/file_handle_cache.erl
parent6a9eceb260fbcd7777720bc8e197d7b7a4f4a7b2 (diff)
downloadrabbitmq-server-425557b29b2b11e07a399f75f6726cf07963cfc1.tar.gz
Always returning either timed or idle, always flushing in timeout/1.
Diffstat (limited to 'src/file_handle_cache.erl')
-rw-r--r--src/file_handle_cache.erl19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl
index 5c81ff2f..c11fb54b 100644
--- a/src/file_handle_cache.erl
+++ b/src/file_handle_cache.erl
@@ -149,7 +149,6 @@
-export([obtain/0, release/0, transfer/1, set_limit/1, get_limit/0, info_keys/0,
info/0, info/1]).
-export([ulimit/0]).
--export([needs_flush/1]).
-export([start_link/0, init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3, prioritise_cast/2]).
@@ -374,24 +373,6 @@ sync(Ref) ->
end
end).
-needs_flush(Ref) ->
- with_handles(
- [Ref],
- fun([#handle { write_buffer = [] }]) ->
- true;
- ([Handle]) ->
- false
- end).
-
-%% needs_flush(Ref) ->
-%% with_handles(
-%% [Ref],
-%% fun([#handle { write_buffer_size = Size }]) when Size > 30000 ->
-%% true;
-%% ([Handle]) ->
-%% false
-%% end).
-
position(Ref, NewOffset) ->
with_flushed_handles(
[Ref],