After updating the index, it contains duplicate entries #1

Closed
aaronmelton opened this Issue Jul 30, 2013 · 2 comments

Comments

Projects
None yet
1 participant
@aaronmelton
Owner

aaronmelton commented Jul 30, 2013

If the index file is out of date and you choose to update it, all subsequent searches will return duplicate records.

@ghost ghost assigned aaronmelton Jul 30, 2013

@aaronmelton

This comment has been minimized.

Show comment
Hide comment
@aaronmelton

aaronmelton Jul 30, 2013

Owner

Identified The Problem.
The buildIndex() function was created to append the indexFileTmp with all data extracted from the router(s). Append was chosen in the case of multiple routers so that data taken from previous routers in the queue (if any) would not be lost. Incidentally, the cleanIndex() function uses the same append function to copy data from the indexFileTmp into the indexFile.

A system call to delete the existing indexFile will have to occur between the user prompt asking them if they wish to update the index and the actual call to the routerLogin() function.

I will create a new branch to correct this bug.

Owner

aaronmelton commented Jul 30, 2013

Identified The Problem.
The buildIndex() function was created to append the indexFileTmp with all data extracted from the router(s). Append was chosen in the case of multiple routers so that data taken from previous routers in the queue (if any) would not be lost. Incidentally, the cleanIndex() function uses the same append function to copy data from the indexFileTmp into the indexFile.

A system call to delete the existing indexFile will have to occur between the user prompt asking them if they wish to update the index and the actual call to the routerLogin() function.

I will create a new branch to correct this bug.

aaronmelton added a commit that referenced this issue Aug 1, 2013

VRFSearchTool v0.0.9-alpha (2013-07-31)
## VRFSearchTool v0.0.9-alpha (2013-07-31) ##
* Creating temporary new branch to correct Issue #1 & Issue #2
@aaronmelton

This comment has been minimized.

Show comment
Hide comment
@aaronmelton

aaronmelton Aug 12, 2013

Owner

Issue resolved in VRFSearchTool v0.0.10-beta.

Owner

aaronmelton commented Aug 12, 2013

Issue resolved in VRFSearchTool v0.0.10-beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment