summaryrefslogtreecommitdiff
path: root/src/file_handle_cache.erl
Commit message (Collapse)AuthorAgeFilesLines
* once again allow use of fhc w/o registeringbug23138Matthias Radestock2010-08-191-4/+7
|
* rewriteMatthias Radestock2010-08-191-101/+91
|
* Correct monitoring and actions upon DOWN messages. Note this is especially ↵Matthew Sackman2010-08-171-65/+105
| | | | subtle for obtains, which effectively implicitly allocates temporarily to the blocked caller (FromPid) whilst monitoring it, and then transfers this to the ForPid when possible. Note the ForPid can die before the obtains is processed, which which point the FromPid must be replied to immediately.
* obtain_and_release_on_death => obtain, and minor refactor of tcp acceptorbug23135Matthew Sackman2010-08-171-13/+11
|
* Combine obtains and release_on_deathMatthew Sackman2010-08-171-27/+30
|
* Minor correctionsbug23132Matthew Sackman2010-08-171-4/+5
|
* cosmeticMatthias Radestock2010-08-161-1/+1
|
* tweakMatthias Radestock2010-08-161-2/+2
|
* tweakMatthias Radestock2010-08-161-5/+5
|
* tweakMatthias Radestock2010-08-161-1/+1
|
* obtain_limit can be 'infinity'Matthias Radestock2010-08-161-1/+1
|
* cosmeticMatthias Radestock2010-08-161-1/+1
|
* refactor: incorporate limit checking into maybe_reduceMatthias Radestock2010-08-161-26/+22
|
* cosmeticMatthias Radestock2010-08-161-26/+35
|
* opens => open. obtains => obtainMatthew Sackman2010-08-161-61/+61
|
* Finally, it works. Important points: 1) remove elders from blocked clients ↵Matthew Sackman2010-08-161-18/+24
| | | | so that we calculate average based on pids that can actually respond. 2) reduce whenever we have pending_opens to ensure we rotate the strike.
* Whoops. Be consistent about comparisonsMatthew Sackman2010-08-161-1/+2
|
* Sockets have priority up to 90%. Processes have the full 100% but at lower ↵Matthew Sackman2010-08-161-54/+79
| | | | priority.
* WhoopsMatthew Sackman2010-08-161-1/+1
|
* Split obtains in two : one for open requests (higher priority) and one for ↵Matthew Sackman2010-08-161-39/+67
| | | | obtains requests (lower priority, and a lower limit)
* Allow the fhc server to request the client closes file handles before ↵Matthew Sackman2010-08-161-31/+52
| | | | granting an open - thus prevents deadlocks
* Merging default into bug 23132Matthew Sackman2010-08-161-18/+20
|\
| * Obtain from the fhc sync, and obtain it before we actually open the fileMatthew Sackman2010-08-151-18/+20
| |
* | A msg can appear > once in the same file because of multiple queues ↵Matthew Sackman2010-08-141-1/+2
|/ | | | receiving the same msg. When we iterate through the msgs we find in the file, we must check that the msg corresponds to the msg in the index, by matching not just with guid but also with offset. Also just for fun, assert the total_size matches. Also, fixed a mistake in file_handle_cache where the dirty flag on the destination of copy wasn't being set.
* Improvements to commentsbug23118Matthew Sackman2010-08-131-6/+10
|
* Reduce the file descriptor limit for Windows to 512Matthew Sackman2010-08-131-2/+2
|
* use consistent return types for start/start_link functionsbug23120Matthias Radestock2010-08-131-2/+2
|
* Introduced and used ok_or_error2(A,B). Also verified everything seems happy ↵Matthew Sackman2010-07-071-1/+1
| | | | under R13B03
* cleanupAlexandru Scvortov2010-07-061-4/+5
|
* {'ok', A} -> rabbit_types:ok(A)Alexandru Scvortov2010-07-061-1/+1
|
* {'ok' | error(...)} -> rabbit_types:ok_or_error(...)Alexandru Scvortov2010-07-061-3/+2
|
* {error, A} -> rabbit_types:error(A)Alexandru Scvortov2010-07-061-1/+1
|
* cherry-pick file_handle_cache from bug21673Matthias Radestock2010-04-301-0/+862
and its integration with the tcp_acceptor and worker_pool code