Menu

#165 qfa mode in 0.4b45 non-functional

None
closed-fixed
nobody
None
5
2016-07-04
2016-06-24
No

this is a forward of debian bug #826669 ( bugs.debian.org/826669 ): dump -Q filename fails because the qfa filename is not communicated to the indexer plugin thing.

symptom:
DUMP: writing QFA positions to (null)
DUMP: can't open tapeposfile

dump/main.c has a very relevant fixme comment:
case 'Q': / create tapeposfile /
//gTapeposfile = optarg; // FIXME - communicate filename to indexer.
tapepos = 1;
break;

Discussion

  • Alexander Zangerl

    i've patched this by temporarily restoring the argument passing via gTapeposfile; declared extern and non-static. i've also adjusted the static declaration of gTapeposfd to prime it with -1: if left at default/0, the code checking that (does '>= 0') causes unwanted qfa data to be printed to stdout if you don't pass in -Q something.

     
  • Mike Frysinger

    Mike Frysinger - 2016-07-04

    thanks, i've pushed this in commit 90faeeafffe87a774fb980ec71fe36c7ee30f718. can't be worse than the status quo :).

     
  • Mike Frysinger

    Mike Frysinger - 2016-07-04
    • status: open --> closed-fixed
    • Group: -->
     

Log in to post a comment.

MongoDB Logo MongoDB