MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / adjustTrackOnError

Function adjustTrackOnError

lib/algorithms/readerwriter.cc:335–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335static void adjustTrackOnError(FluxSource& fluxSource, int baseTrack)
336{
337 switch (globalConfig()->drive().error_behaviour())
338 {
339 case DriveProto::NOTHING:
340 break;
341
342 case DriveProto::RECALIBRATE:
343 fluxSource.recalibrate();
344 break;
345
346 case DriveProto::JIGGLE:
347 if (baseTrack > 0)
348 fluxSource.seek(baseTrack - 1);
349 else
350 fluxSource.seek(baseTrack + 1);
351 break;
352 }
353}
354
355struct ReadGroupResult
356{

Callers 2

writeTracksAndVerifyFunction · 0.85
readAndDecodeTrackFunction · 0.85

Calls 2

recalibrateMethod · 0.45
seekMethod · 0.45

Tested by

no test coverage detected