add force_disconnect function
commitead31bf18094fd131d90972354e49af7d3abc459
authorDave Lambley <davel@state51.co.uk>
Sat, 19 Jan 2013 09:11:32 +0000 (19 09:11 +0000)
committerEric Wong <normalperson@yhbt.net>
Sat, 19 Jan 2013 09:14:03 +0000 (19 09:14 +0000)
treed2078d98acf82eb0a12fb9bb87eeb5fdfa9a99f8
parentb073b4562c8f45274a2344174af82e98c1fe920f
add force_disconnect function

Forces the client to disconnect from the tracker, causing it to reconnect
when the next request is made.  It will reconnect to a different tracker if
possible.  A paranoid application may wish to do to this before retrying a
failed command, on the off chance that another tracker may be working better.

[ew: commit message body taken from POD]

Signed-off-by: Eric Wong <normalperson@yhbt.net>
lib/MogileFS/Backend.pm
lib/MogileFS/Client.pm
t/30-disconnect.t [new file with mode: 0644]