Skip to content

Commit b21bc30

Browse files
committed
Leave binary tree intact upon insertion error
1 parent 2ecf839 commit b21bc30

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Svc/DpCatalog/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/DpTest*/
2+
dpState.dat

Svc/DpCatalog/DpCatalog.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,7 @@ int DpCatalog::processFile(Fw::String fullFile, FwSizeType dir = DP_MAX_DIRECTOR
559559
bool insertedOk = this->insertEntry(entry);
560560
if (not insertedOk) {
561561
this->log_WARNING_HI_DpInsertError(entry.record);
562-
// clean up and return
563-
this->resetBinaryTree();
564-
this->resetStateFileData();
562+
// return and hope new slots open up later
565563
return -1;
566564
}
567565

0 commit comments

Comments
 (0)